I\'m trying to write a C99 program and I have an array of strings implicitly defined as such:
char *stuff[] = {\"hello\",\"pie\",\"deadbeef\"};
In the first example, it is a jagged array I suppose.
It declares an array of const pointers to a char. So the string literal can be as long as you like. The length of the string is independent of the array columns.
In the second one.. the number of characters per row (string
) lengths must be 9 as specified by your column size, or less.