Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int array2d[3][5] = {
- {1, 2, 3, 4, 5},
- {6, 7, 8, 9, 10},
- {11, 12, 13, 14, 15}
- };
- int main()
- {
- int col, row;
- printf("Printing array2d\n");
- for (col = 0; col <=2; col++)
- {
- for (row = 0; row <= 4; row++)
- {
- printf("%i ", array2d[col][row]);
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement