about Multi-Dimensional array

amila isura

what is multidimensional array? Multidimensional arrays can be described as "arrays of arrays". For example, a twoDMatrix array can be imagined as a twoDMatrix table made of elements, all of them of a same uniform data type.

int twoDMatrix [2 ][3 ]  =   {  {5,3,2},{8,4,1} };

I want to know this answer is correct or not .

ANjaNA

YES dude, your representation is correct.

In the case of array access,

int twoDMatrix [2 ][3 ]  =   {  {5,3,2},{8,4,1} };

twoDMatrix[0][0] is 5 and twoDMatrix [1][1] is 4.

believe you got it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related