Versions Compared

Key

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

...

The following well-formed but noncompliant code example borrowed from Section 6.5.16.1 of the C Standard allows a constant value to be modified.:

Code Block
bgColor#FFcccc
langc
char const **cpp;
char *cp;
char const c = 'A';

cpp = &cp; /* constraint violation */
*cpp = &c; /* valid */
*cp = 'B'; /* valid */

...