Multi-dimensional Arrays

M

mshetty

Hi,

I am totally confused with the concept of arrays in CPP.

Is a 3D Char array equivalent to a 2D String array?

Thanks and Regards,
M Shetty
 
V

Victor Bazarov

Hi,

I am totally confused with the concept of arrays in CPP.

Is a 3D Char array equivalent to a 2D String array?

What do you mean by "String"? BTW, the type is actually
"char", C++ is case sensitive, let's not forget that.

If by "String" you mean "an array of char", then yes, a 2D
array of "String" is in fact a 2D array of "array of char",
or, by definition, a 3D array of char.

V
 

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
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top