Solved

What Will the Following Program Segment Do

Question 16

Multiple Choice

What will the following program segment do?
Int counter = 1;
Do
{
Cout << counter << " ";
} while ++counter <= 10 ) ;


A) Print the numbers 1 through 11.
B) Print the numbers 1 through 10.
C) Print the numbers 1 through 9.
D) Cause a syntax error.

Correct Answer:

verifed

Verified

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

Related Questions