...
Code Block | ||
---|---|---|
| ||
char s[3] = { 'a', 'b', 'c' }; /* NOT a string */ |
Again, if one is providing an initializer to an array, an explicit bound is unnecessary, and, in fact, discouraged.
Also, one should make clear in comments or documentation if a character array is, in fact, not a null-terminated byte string.
...