Question: Tic-Tac-Toe board using C Questions (1) Write a C function that allows the user to initialize a Tic-Tac-Toe board. The board is a 2D array
Tic-Tac-Toe board using C




Questions (1) Write a C function that allows the user to initialize a Tic-Tac-Toe board. The board is a 2D array of size 3x3. The function will set an id for each cell of the board starting from 1 and stop at 9. The function prototype is void InitializeBoard(int m, int n, char board[][n])[0 Points] Here is sample output showing the board after initializing it using the function 1 | 2 | 3 4 | 5 | 6 7 | 8 | 9 ...Program finished with exit code o void InitializeBoard(int m, int n, char board [][n]){ int c =1; for(int i =0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
