Question: In the update to the tic - tac - toe game that introduced loops, why are the variables col and row set to 0 after
In the update to the tictactoe game that introduced loops, why are the variables col and row set to after each for loop?
The code won't compile without them there.
It ensures the validation loop will run correctly on the next turn.
They could be initialized to any value at all.
For improved readability
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
