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

43. 

Which of the following while clause will stop the loop when the value in the age variable is less than the number 0?

[A]. while age < 0
[B]. while (age < 0)
[C]. while age >= 0;
[D]. while (age >= 0);
[E]. while (age >= 0)

Answer: Option E

Explanation:

No answer description available for this question.

Abdul Basit said: (Mar 21, 2012)  
E is correct because if we terminate the loop with ; it will not execute the rest of the code.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.