I need an array of dimension NxN but I need to malloc instead of doing 'int a[N][N];' and read in integers. I tried the following:
int ..........;
...
a=(int **)malloc(N*sizeof(int**));
and (a+i+j) to store the scanned value using nested for loops. It's not working since a+1+0 is the same as a+0+1
could anyone help? C or C++
Thanks,
xer
*new programer*