Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #72.8K
2 Posted Topics
Re: Write an interactive program C that plays tic-tac-toe. Represent the board as a three-by-three character array. Initialize the array to blanks and ask each player in turn to input a position. The first player's position will be marked on the board with an O, and the second player's position will … | |
[code=c] #include<stdio.h> // Global variable declaration and initialization. can be used every where in the program body. static char grid[3][3] ={{' ',' ',' '}, {' ',' ',' '}, {' ',' ',' '} }; void Print()//--- to print the grid. prints the grid. { int i, j; printf("\t-------------\n"); for(i = 0; … |
The End.