fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int i, j;
  5. int a[5][5] = { {1, 2, 3, 4, 5},{6, 7} };
  6. int b[5][5] = { {1} };
  7. for (i = 0; i < 5; i++) for (j = 0; j < 5; j++)
  8. printf("%d, ", a[i][j]);
  9. putchar('\n');
  10. for (i = 0; i < 5; i++) for (j = 0; j < 5; j++)
  11. printf("%d, ", b[i][j]);
  12. return 0;
  13. }
  14. /* end */
  15.  
Success #stdin #stdout 0s 1832KB
stdin
Standard input is empty
stdout
1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,