Vidyalelo
C Programming · Q71

Control Structures

Programming · C Programming · question 71

Q71

What will be the output of the following C code? #include 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
Answer
B.
In while loop in while loop 3
C.
In while loop 3
D.
Infinite loop

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board