fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a[3][2] = { 1, 22, { 2, 3, 4, 5, 6 }, { 7, 8 } };
  6.  
  7. for (int i = 0; i < 3; i++)
  8. for (int j = 0; j < 2; j++)
  9. printf("a[%d][%d] = %d\n", i, j, a[i][j]);
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 5504KB
stdin
Standard input is empty
stdout
a[0][0] = 1
a[0][1] = 0
a[1][0] = 22
a[1][1] = 2
a[2][0] = 7
a[2][1] = 8