I really don't understand what you want completely, but I get an figure now, please try the bottom program, and tell me what you want to do:
Code:
#include <stdio.h>
int main(void)
{
int myArr[3][3];
int i, j;
//initialise the array, all values to 0
for (i=0; i<3; i++)
for (j=0; j<3; j++)
myArr[i][j] = 0;
//loop and print the position
for (i=0; i<3; i++) {
for (j=0; j<3; j++)
printf("You are at myArr[%d][%d]!\n", i, j);
putchar('\n');
}
return 0;
}
The output of this program in my machine:
Code:
You are at myArr[0][0]!
You are at myArr[0][1]!
You are at myArr[0][2]!
You are at myArr[1][0]!
You are at myArr[1][1]!
You are at myArr[1][2]!
You are at myArr[2][0]!
You are at myArr[2][1]!
You are at myArr[2][2]!
Press any key to continue