In this code, I have an array of two dimensions, I started and I want to start with printf, but I do not know how to do it:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
int matriz1 [3][4] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
int matriz2 [3][4] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}};
for(i=0; i<12; i++) {
printf("%d\n", matriz1[i]);
}
system("pause");
return 0;
}
I tried with for