--- In [email protected], "johnmatthews2000" <jm5...@...> wrote: > > Or modify the code slightly - make m a global instead of local - and I get > another answer. But this is ok because the result is undefined. > > [jo...@wey ~]$ a.out > 2
Using the same code, but with optimisation level 2: [jo...@wey ~]$ gcc -O2 test.c [jo...@wey ~]$ a.out 4 Another answer, but this is ok because the result is undefined. Did I mention that the result is undefined? :-)
