Determine Output:
void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);}
void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);}Determine Output:
void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} Correct Answer 1
Before entering into the for loop 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).
মোঃ আরিফুল ইসলাম
Feb 20, 2025