Original Post
I'm trying to initialize and array of char to ' ', but I'm having some issues. Is my declaration Is my use of the function in my program Is my function definition. I keep getting an error: - error: cannot convert 'char (*)[3]' to 'char**' for argument '1' to 'void initailize_board(char**)' Thanks again for all the help!
void initailize_board(char ** board);
char gameBoard[3][3];
initailize_board(gameBoard);
void initailize_board(char ** board) {
// Initialize entire array to ' '
for(int index1 = 0; index1 < 3; index1++)
{
for(int index2 = 0; index2 < 3; index2++)
{
board[index1][index2] = ' ';
}
}
}