Multiple Choice
What is the output of the following C++ code? count = 1;
num = 25;
while (count < 25)
{
num = num - 1;
count++;
}
cout << count << " " << num << endl;
A) 24 0
B) 24 1
C) 25 0
D) 25 1
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: Which executes first in a do...while loop?<br>A)
Q15: A do...while loop is a(n)_ loop,since the
Q16: The for loop body executes indefinitely if
Q17: Suppose sum and num are int
Q17: The control variable in a flag-controlled while
Q21: The _ loop has an exit condition
Q22: Assume all variables are properly declared.The
Q23: The function srand takes as input a(n)_
Q30: A semicolon at the end of the
Q36: Which of the following is a repetition