Detailed Print – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
siteicon
Solved Problem#CPP#6994

Problem Statement - 03B-2019S-C1

Write definition for a function XOXO(char M[4][4]) in C++, which replaces every occurrence of an X with an O in array, and vice versa.

For example:

ORIGINAL ARRAY M
X X O X
O X O O
O O X X
X X O O

 

CHANGED ARRAY M
O O X O
X O X X
X X O O
O O X X

NOTE:

  • DO NOT DISPLAY the Changed Array contents.
  • Do not use any other array to transfer the ontents of array M.

Solution

Click to open popup