Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int array2d[3][5] = {
  5.                     {1, 2, 3, 4, 5},
  6.                     {6, 7, 8, 9, 10},
  7.                     {11, 12, 13, 14, 15}
  8.                     };
  9.  
  10. int main()
  11. {
  12.     int col, row;
  13.     printf("Printing array2d\n");
  14.  
  15.     for (col = 0; col <=2; col++)
  16.         {
  17.             for (row = 0; row <= 4; row++)
  18.                 {
  19.                     printf("%i ", array2d[col][row]);
  20.                 }
  21.             printf("\n");
  22.         }
  23.     return 0;
  24. }