Code:
for (int j = 0; i < 3; j++)
Why here "i"?
I get no a segmentation fault but I see also no output. Your indentation style is not beneficial.
For "printf" is missing <stdio.h>. Your code with printf:
Code:
for (int i = 0; i < 3; i++)
{
for (int j = 0; i < 3; j++)
{
board[i][j] = '?';
printf("%c ", board[i][j]);
}
}
And this is the output now:
And now:
Code:
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 3; j++)
{
board[i][j] = '?';
printf("%c ", board[i][j]);
}
}
And the output:
Ten instead of nine.