Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated references from C11->C23

The C Standard, 6.7.34, paragraph 7 [ISO/IEC 9899:20112024], states

If an attempt is made to modify an object defined with a const-qualified type through use of an lvalue with non-const-qualified type, the behavior is undefined.

...

Bibliography

[ISO/IEC 9899:20112024]Subclause 6.7.34, "Type Qualifiers"


...