Hi,
I donĀ“t get why I get this warning, since the array cannot be bigger then 7x7!
#include<stdio.h>
#define N 7
int main(void)
{
char CheckerBoard [N][N];
int row, col;
for(row = 0; row < N; row++);
for(col = 0; col < N; col++);
if ((row+col)/2 == row)
CheckerBoard[row][col] = 'B';
else
CheckerBoard[row][col] = 'R';
return 0;
}
I also tried it with a while loop but kept the same error!
grtz!