Vidyalelo
C Programming · Q48

Control Structures

Programming · C Programming · question 48

Q48

What is the output of the following statements? for(i=10; i++; i<15) printf("%d ", i);

A.
10 11 12 13 14
B.
10 11 12 13 14 15
C.
9 10 11 12 13
D.
Infinite loop
Answer
E.
None of these

Answer: Option D

Solution

Answer: Option D
Solution:

Since the condition is always true it will go to infinite loop.