0
Who can say what it means? Int[ ][ ] A = new int [ 10][ ];
3 odpowiedzi
+ 1
In my opinion this expression is used to initialize two dimensional array ( matrix ). The number of rows is set to 10, the number of columns isn't set.
0
its an array of arrays,this is not a 2 dimentional array.
for 2 dimentional array:
int[,] arr = new int[10,10];
it is easier to work like this,and you can refer to this: [ ] [ ] as a 2 dimentional array but its not true and more complicated, for example:
lets have a point (3,7) in a 2 dimentional array.
1.[3][7]
2.[3,7]
the first option is like youre in an array where x=3 in it, and in the array there is another array where y=7,thats where your point is.
the second option is easier to use,especially in complex programs and when you pass this to a function. it basicly combines the two arrays to one array with 2 dimentions.
0
Thanks)