Solved

What Is the Output of the Following,if It Were Embedded \quad

Question 26

Multiple Choice

What is the output of the following,if it were embedded in an otherwise correct and complete program and run?
int x = 10;
While (x > 0)
{
\quad cout << x << " ";
\quad x= x + 3;
}
cout << endl;


A) 10 13 16 19 ...
B) The compiler detects that this will be an infinite loop,so it does not compile. Insert lowercase be
C) This is an infinite loop.When compiled and run,it runs until machine limitations stop it,or you get tired of it and kill the process.
D) 0 3 6 9.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions