anot initialized by function foo. Printing an uninitialized variable causes undefined behavior .
In this case, you can get anything, the expected or unexpected result. In my compiler, output
4203214
, .
, 42, , . bar, 42 . . foo, a 42.
( -o), a.