Answers for "Create a 2 dimensional array of size 10x10 using malloc statement. The data type of the array is long. Then set the member of the array at the 2nd row and the 3rd column the value 10;"

C
5

c 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];
  }
}
Posted by: Guest on February-27-2020

Code answers related to "Create a 2 dimensional array of size 10x10 using malloc statement. The data type of the array is long. Then set the member of the array at the 2nd row and the 3rd column the value 10;"

Code answers related to "C"

Browse Popular Code Answers by Language