Versions Compared

Key

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

...

Incidentally, initializing a character array using a string literal to fit exactly without a null byte is not allowed in C++.

This rule contrasts with ARR02-A. Always provide a size on array declarations, even if the size is implicit in an initializer.

Non-Compliant Code Example

...