ExamVeda
Login
Home
This question belongs to C Program Control Structures
Control Structures
?

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

Answer & Solution
Correct Answer: Option D

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

Examveda
Question posted by Examveda
Community

Join the Discussion

2 Comments
AKMAL NUR
AKMAL NUR 6 years ago
Suppose that x,y,z, and w are int variables, and x=3, y=4, z=7, and w=1. What is the output of the following statements?
a) cout
Kashyap Patel
Kashyap Patel 10 years ago
what will happen on 32-bit machine when i reaches to 0 almost after (0xffffffff -10).