Vidyalelo
C Programming · Q153

Control Structures

Programming · C Programming · question 153

Q153

What will be the output of the following C code? #include int main() int i = 0; for (i++; i == 1; i = 2) printf("In for loop "); printf("After loop ");

A.
In for loop after loop
Answer
B.
After loop
C.
Compile time error
D.
Undefined behaviour

Answer: Option A

Solution

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