Versions Compared

Key

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

...

STR36-EX2: If the char array must be larger than the string literal it is initialized with, you may explicitly specify an array bounds. This is particularly important if the array's contents might change in the futureduring program execution.

Code Block
bgColor#ccccff
char s[10] = "abc";
strcpy(&s[3], "def");

...