Question: C++ quick questions. 1. The error checking loop below ensures that the user enters character 'Y or 'y'. It should loop until one of these
C++ quick questions.



1. The error checking loop below ensures that the user enters character 'Y" or 'y'. It should loop until one of these two characters is entered. What is the correct loop test? char reply; do { cout > reply; while ( a. reply reply y b. replyY&& reply 'y c. reply! 'Y reply!'y' d. reply! 'Y' && reply !-'y' 2. What is the output of the code segment? int n 0 while (n 0; c. Both loops display the output. d. Neither loop displays the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
