some help plz

k i have a function:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void
copyB(const int *fromPtr, int rows, int columns, int to[][10])
{
    int r;
    int c;
*fromPtr++;
    for (r =0; r<=rows; r++) {
        for (c =columns-1; c>0; c--){
            to[r][c] = *fromPtr++;
            }}
        *fromPtr--;
        *fromPtr--;
    for (r =rows-1; r>0; r--) {
        for (c =0; c<columns; c++){
            to[r][c] = *fromPtr--;
            }
            }

which gives this output when linked with the main that instructor gave me:
0 4 3 2
8 7 6 5
12 11 10 9

but instead it should be

4 3 2 1
8 7 6 5
12 11 10 9

i tried everything but just cant get rid of that 0, so does any1 know how to make it look how it should? becuase i feel like im really close
Topic archived. No new replies allowed.