2d array
int a[2][3]= {
        {1, 2, 3},
        {4, 5, 6}
    };
    
    cout << a[1][1]; // Output is 52d array
int a[2][3]= {
        {1, 2, 3},
        {4, 5, 6}
    };
    
    cout << a[1][1]; // Output is 5c fill 2d array
// Either
int disp[2][4] = {
  {10, 11, 12, 13},
  {14, 15, 16, 17}
};
// Or 
int disp[2][4] = { 10, 11, 12, 13, 14, 15, 16, 17};
// OR
int i, j;
for (i = 0; i < HEIGHT; i++) { // iterate through rows
  for (j = 0; j < WIDTH; j++) { // iterate through columns
    disp[i][j] = disp[i][j];
  }
}2d array python
array = [[value] * lenght] * height
//example
array = [[0] * 5] * 10
print(array)matrix c declaration
int disp[2][4] = { 10, 11, 12, 13, 14, 15, 16, 17};How to create a 2d array in java
int[][] arr = new int[m][n];Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us
