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
CSKC| Created: 8-Apr-2019 | Updated: 10-Apr-2019|CBSE12A-2019