• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Multidimensional Array!  RSS feed

 
Brian Smith
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i would appreciate if you could educate me on this multidimensiolnal array.
when i declare int twoDim [][] = new int [3][4];
is [3] row and [4] column or the otherway?
why the following is illegal?
int twoDim [][] = new int [][2];
What does the following mean?
int multiDim [][] = new int [3][]; what does the blank [] after [3] mean?
multiDim = new int[6]; //what does it mean?
i would really appreciate if anyone could interpret the above statements.
thanks.
[ June 16, 2003: Message edited by: Namaste Sathi ]
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this thread and see it that clears it up.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!