Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 outputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started