Versions Compared

Key

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

...

The problem with using this approach is that the behavior is undefined when accessing any element other than the first element of data. (See subclause 6.5.6 of the C Standard [ISO/IEC 9899:2011].) Consequently, the compiler can generate code that does not return the expected value when accessing the second element of data.

This approach may be the only alternative for compilers that do not yet implement the standard C syntax.

Compliant Solution

...