🎴 Flashcard Mode

C Programs (GATE)

Card1 / 15
Mastered0
Review0
QuestionClick to flip

Find the output of the following C program:

main(){int i=0;while(++i<=10) printf(%d, i);}

AnswerClick to flip back
A
1 to 10
💡 Explanation:

First incrementation of i takes place, then comparison of value of i with 10 is performed, then the program prints values from 1 to 10.

Change Mode