View Single Post
Old Feb 22nd, 2005, 7:44 PM   #12
ian
Newbie
 
Join Date: Feb 2005
Location: Singapore
Posts: 13
Rep Power: 0 ian is on a distinguished road
Question: Sub-Arrays.

Okay, I have another question. If I want a array of strings, in other words, I'd need to have a char 2D array, right?

I need an array of 6 values, each value with 3 characters, so would it be

1) char someStrings[3][6];

or

2) char someStrings[6][3];

.

I know Java uses almost the same syntax, but I'm not getting the results I want in a test program I'm currently doing (I found out it was related to the array). Also, I apologise if there's another thread here that mentions this already, thanks for the help. :o
ian is offline   Reply With Quote