A

Admin • 833.24K Points
Coach

Q. What will be the output of the following C code?

Code:
#include <stdio.h>
int main()
{
int i = 0;
do
{
i++;
if (i == 2)
continue;
printf("In while loop ");
} while (i < 2);
printf("%d
", i);
}
  • (A) In while loop 2
  • (B) In while loop in while loop 3
  • (C) In while loop 3
  • (D) Infinite loop
  • Correct Answer - Option(A)
  • Views: 31
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.