Write a function that will generate a tic-tac-toe board using a 2-D array as input. Use the main() function to print out the results after the array has been rendered. You will need to use random numbers. You can determine an “X” and an “O” by using modulus arithmetic with the number 2. Assign 1 to “X” and 0 to “O”. Generate the full board. It doesn’t matter if there is more than one win on the board or not.
Getting compiler error. Any help would be appreciated.
Your function void ticTacToe(int board[][COL]) takes and integer of a multidimensional array. However, on line 25, char board[ROW][COL]; is a character data type of a multidimensional array. So on line 27, ticTacToe(board);, you will get a compiler error due to trying to call a function with a char data type into a function that only takes a integer data type.