Versions Compared

Key

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

...

If ipp, ip, and i are declared as automatic variables, this example compiles without warning with Microsoft Visual Studio 2012 when 2013 when compiled in C mode (/TC) and the resulting program changes the value of i. GCC 4.8.1 generates a warning but compiles, and the resulting program changes the value of i.

If ipp, ip, and i are declared with static storage duration, this program compiles without warning and terminates abnormally with Microsoft Visual Studio 20122013, and compiles with warning and terminates abnormally with GCC 4.8.1.

...