In C arrays' index number starts with 0 ends with size-1. Let's use your for loop:

Code:
int array[5];
int i;
for(i = 1; i <= 5; i++)
    array[i] = 0;
/*Then Print*/
for(i = 1; i <= 5; i++)
    printf("%d,", array[i]);
The code above would print "0,0,0,0,0," but the code is wrong. Because you started from 1 you didn't fill array[0] and because you ended at 5 you filled array[5] and that place doesn't belong to your array. Eventho it prints out what you want that last space you put 0 in might belong to something else. You can learn more about this when you learn pointers. Correct code should be this:

Code:
int array[5];
int i;
for(i = 0; i <= 4; i++)
    array[i] = 0;
/*Then Print*/
for(i = 0; i <= 4; i++)
    printf("%d,", array[i]);
Now this was your first mistake. You second mistake is trying to put 3 characters i , and j into 1 character space. You cannot do that. To solve your problem you can create an integer matrix instead of char and place coordinates without ','.

For example 5x5 matrix might look like this:

00 01 02 03 04
10 11 12 13 14
20 21 22 23 24
30 31 32 33 34
40 41 42 43 44