Computer Science, asked by rahatmulla6, 5 months ago

What will be the value of counter after the following program is executed?
void main ( )
{
int counter ;
int digit = 0 ;
counter = 1 ;
while (digit < = 10)
{
+ + counter ;
+ + digit ;
}
cout < }

Answers

Answered by ankuranshuman803
0

Answer:

value of counter will be 11

Explanation:

digit will increase upto 10 then ++ it will increment one step then we will get output as 11 for counter

Similar questions