The Code is C++
// tic tac toe game
#include <iostream>
using namespace std;
const int SIZE = 9;
int check(char *);
void displayBoard(char *);
void initBoard(char *);
int main() {
char board[SIZE];
int player, choice, win, count;
char mark;
count = 0; // number of boxes marked till now
initBoard(board);
// start the game
player = 1; // default player
mark = ‘X’; // default mark
do {
displayBoard(board);
cout << “Player ” <<player << “(” << mark << “)” << ” Enternumber: “;
do {
cin >>choice;
if (choice <1 || choice > 9 || board[choice – 1] !=
PayPal Gateway not configured
PayPal Gateway not configured