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.

C++ quick questions. 1. The error checking loop below ensures that theuser enters character 'Y" or 'y'. It should loop until one ofthese two characters is entered. What is the correct loop test? char

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!