...
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 | ||
---|---|---|
| ||
char s[10] = "abc"; strcpy(&s[3], "def"); |
...