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)cout << x << “ ”;
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.
a) 10 13 16 19 . . .
c) This is an infinite loop. When compiled and run, it runs until machine limitations
Computer Science & Information Technology
You might also like to view...
To save changes made in your desktop OneNote application to your OneDrive Online App, you ________ the two to make them the same
Fill in the blank(s) with correct word
Computer Science & Information Technology
What are the five steps of a switch's operation?
What will be an ideal response?
Computer Science & Information Technology