Two dimensional arrays are those arrays which are used to maintain
data in the form of row and column. It stored in tabular format.
Declaration of 2D array
Int [,] marks = new int [3, 4];
For (int i = 0; i<3; i++)
{
For (int j=0; j<4; j++)
{
Marks [I,j] = 34;
}
}
Declaration of 2D array
Int [,] marks = new int [3, 4];
For (int i = 0; i<3; i++)
{
For (int j=0; j<4; j++)
{
Marks [I,j] = 34;
}
}
Comments
Post a Comment