A
Alf P. Steinbach /Usenet
* James Kanze, on 25.08.2010 10:54:
No, it does not.
Please indicate which paragraph it is that you're misinterpreting, James.
C has multidimensional arrays. C++ does not lack them. Happily.
Cheers & hth.,
- Alf
James Kanze said:there are no multidimensional arrays in C++, the closest
one can come is an array of arrays.
If "int array[10][20]" is not a multidimensional array, then
what is, in your opinion, a multidimensional array?
"int array[10][20]" is an array of 20 arrays of 10 int. It
behaves somewhat like a multidimensional array, but not
completely; something like:
int (*p)[10] = array;
wouldn't be legal if it were a multidimensional array.Well, I didn't ask why "int array[10][20]" isn't
a multidimensional array (and, frankly, your argument wasn't
so convincing, IMO).
It wasn't "my argument". It's what the standard and the
language specification says.
No, it does not.
Please indicate which paragraph it is that you're misinterpreting, James.
C has multidimensional arrays. C++ does not lack them. Happily.
Cheers & hth.,
- Alf