= 0 ); }"> What is the right choice, if the following loop is implemented? void main() { in = 0 ); }"> = 0 ); }" /> = 0 ); }" />
Sail E0 Webinar
Question
What is the right choice, if the following loop is implemented?
void main()
{
int num = 0;
do{
--num;
printf("%d", num);
}while( ++num >= 0 );
}
Options:
A .  A run time error will be generated.
B .  The program will not enter into the loop.
C .  There will be a compilation error reported.
D .  The loop will run infinitely many times.
E .  Prints the value of 0 one time only.
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers