Interview Question 3566
Created by admin on Sat, 17/11/2012 - 12:37
Explanation:
Before entering into the for loop the checking condition is "evaluated". Here it evaluates to 0 (false) and comes out of the loop, and i is incremented (note the semicolon after the for loop)..
Question:
main()
{
int i=0;
for(;i++;printf("%d",i)) ;
printf("%d",i);
}
Language:
Answer:
1