multi dimensional array

M

Matthew Jakeman

How can i create a multi dimensional array of "strings"? I've tried
char *[][] ;
no joy
Cheers for any help
Matt
 
S

SuperCoder2036

Matthew Jakeman said:
How can i create a multi dimensional array of "strings"? I've tried
char *[][] ;
no joy
Cheers for any help
Matt

I having been keeping up with the latest C standard so there may be a
better way to do this now...but to create a multi-dimensional array
you simply:

char array[10][10];

And keep adding dimensions as you need them. I can't remember what,
if any, limit there is on the dimensions but I have always used the
rule of thumb that if you can't draw it then you can't use it. This
means that at most you can have a four dimensional array (x,y,z, and
time).

Hope that helps...

Marty
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,048
Members
48,769
Latest member
Clifft

Latest Threads

Top