Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 2 (Q.No. 43)
43.
Which of the following while clause will stop the loop when the value in the age variable is less than the number 0?
while age < 0
while (age < 0)
while age >= 0;
while (age >= 0);
while (age >= 0)
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Abdul Basit said:   1 decade ago
E is correct because if we terminate the loop with ; it will not execute the rest of the code.

Post your comments here:

Your comments will be displayed after verification.