#include <stdio.h>
int main() {
// a two dimensional array
int a[2][4] = {{4, 2, 7, 8}, {1, 3, 5, 9}};
// two loop variables
int i, j;
for (i = 0; i < 2; i++) {
for (j = 0; j < 4; j++) {
printf("a[%d][%d] = %d\n", i, j, *(*(a + i) + j));
}
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: