Versions Compared

Key

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

...

It is common for an array variable to be initialized by a string literal and declared with an explicit bound that matches the number of characters in the string literal. Section 6.7.9, para. paragraph 14, of the C Standard [ISO/IEC 9899:2011], says:

...

Bibliography

[ECTC 1998]Section A.8, "Character Array Initialization"
[ISO/IEC 9899:2011]Section 6.7.9, "Initialization"
[Seacord 2005a]Chapter 2, "Strings"