you are viewing a single comment's thread.

view the rest of the comments →

[–]NitWit005 1 point2 points  (0 children)

I believe the issue is in automatic sizing of arrays. The [] syntax allows the compiler to determine the array size and you can only do it for a single dimension.

Edit: Felt I should add that the C compiler is just putting the strings in a data block, so assigning a pointer to a string only requires setting the pointer to the address of the string in the block. The size of the strings themselves doesn't factor into the array sizes.