...
This compliant solution does not specify the bound of a the character array in the array declaration. If the array bound is omitted, the compiler allocates sufficient storage to store the entire string literal, including the terminating null character.
Code Block | ||||
---|---|---|---|---|
| ||||
char str[3] = "abc";
printf("%s\n", str); |
...