P
Piotrek
Hi there again!
Last time you helped me with pointers - it let me to save many hours of
searching for some solutions. And once again I have question.
Let's declare array of pointers:
char *O={"", "one", "two",..., "eighteen"};
char *T={"", "ten", "twenty",..., "eighty"};
And now I want to declare an array of arrays of pointers:
something like:
char A={O,T};
Compiler says: "error C2440: 'initializing' : cannot convert from 'char
*[10]' to 'char'".
Here we go with first question: How to declare such array?
The point is that I want to refer to ie. "one" (O[1]) by something like
A[0][1];
That's my second question: How to refer to "one" by array A?
I hope you understand what I mean ...
Thank you in advance!!!
BTW
I couldn't find it in FAQ
And, please, feel free to correct my English!
Last time you helped me with pointers - it let me to save many hours of
searching for some solutions. And once again I have question.
Let's declare array of pointers:
char *O={"", "one", "two",..., "eighteen"};
char *T={"", "ten", "twenty",..., "eighty"};
And now I want to declare an array of arrays of pointers:
something like:
char A={O,T};
Compiler says: "error C2440: 'initializing' : cannot convert from 'char
*[10]' to 'char'".
Here we go with first question: How to declare such array?
The point is that I want to refer to ie. "one" (O[1]) by something like
A[0][1];
That's my second question: How to refer to "one" by array A?
I hope you understand what I mean ...
Thank you in advance!!!
BTW
I couldn't find it in FAQ
And, please, feel free to correct my English!