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
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
Social Sciences,
2 months ago
Chemistry,
2 months ago
English,
2 months ago
Physics,
5 months ago
Economy,
11 months ago