What about this? (using my smaller 2x2 array)
==============
#include <stdio.h>
#define N 2
main()
{
int *ptr, i;
int arr[N][N]={1,2,3,4};
ptr = arr;
for (i=0; i<N*N; i++)
printf("[%d] ", *ptr + i);
return 0;
}
================
I can't seem to initialise the 2x2 array with a for() loop using
*ptr + i
prints out fine though using pointer arithmetic