I'm trying to understand something about 2d char arrays. How can I set up my 2d array to accept the following
char a[][] = {{"item1", "1", "1"}, {"item2", "1", "2"}}
no matter what values I put in 2 brackets there are too many initializers, and putting a third dimension gives me a lvalue error
This call works if I make "a" a pointer, but if I made a a pointer all the data is written into read only memory and becomes unmodifiable.
For now i've simply taken out the inner curly braces and made it one long stream. That seems to have made it happy, however I dont' want to leave this alone until I understand why this particular route wasn't working.
Thanks greatly in advance.