Is the following array really multidimensional?

Posted by flockofcode on Stack Overflow See other posts from Stack Overflow or by flockofcode
Published on 2010-06-12T19:12:44Z Indexed on 2010/06/12 19:22 UTC
Read the original article Hit count: 178

Filed under:
|

Book I’ learning from claims that intArray has two dimensions. But since calling intArray.GetLength(1) will result in an IndexoutOfRange exception, couldn’t we claim that unlike rectangular arrays, intArray isn’t really multidimensional and thus has only one dimension?

int[][] intArray=new int[3][];

thank you

© Stack Overflow or respective owner

Related posts about c#

Related posts about arrays