Versions Compared

Key

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

...

If cpp, cp, and c are declared as automatic (stack) variables, this example compiles without warning on Microsoft Visual C++ .NET (2003) and on MS Visual Studio 2005^1^2005 1. In both cases, the resulting program changes the value of c. Version 3.2.2 of the gcc compiler generates a warning but compiles. The resulting program changes the value of c.

...

Footnotes

1. According to C99 Section 5.1.1.3:

...