Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When the above example is executed on GCC Version 4.1.2, the variable i is instantiated with automatic storage duration within the block, but it is not initialized. Consequently, if the controlling expression has a non-zero value, the call to printf() will access an indeterminate value of i. Similarly, the call to the function will never be executed either f() is not executed.

i

Output

0

17

non-zero

indeterminate

...