Short Answer
What is the output of the following code fragment?
int x=0;
while x < 5)
cout << x << endl;
x ++;
cout << x << endl;
a.0
b.5
c.4
d.unable to determine
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: Given the following code fragment, what is
Q5: What is the value of x after
Q7: The body of a while loop may
Q12: What is the output of the following
Q17: Another way to write the value 3452211903
Q19: Given the following code fragment,and an input
Q21: The stream that is used for output
Q24: Given the following code fragment and the
Q33: The body of a do-while loop always
Q51: What is the value of x after