0

The following is a function I wrote to go along with a minesweeper program. For some crazy reason, the inner loop gets skipped after i begins to increment. For example, after i and j have been reduced by one:

n = 3, k =3

i = 0

j = 0, j = 1, j = 2

i = 1

i = 2

```
void checkaddnum(int board[][SIZE],int i, int j) {
int n = i + 2;
int k = j + 2;
i -= 1;
j -= 1;
for (i; i < n; i++){
for (j; j < k; j++){
if (inbounds(board,i,j))
continue;
else
board[i][j] += 1;
}
}
}
```

I also get the unused value warning for my two for loops and I do not know why. Any help would be greatly appreciated.