Home » C Programming » Control Instructions

What will be the output of the program? #include int main() { int x=1, y=1; for(; y; printf("%d %d\n", x, y)) { y = x++ <= 5; } printf("\n"); return 0; }

Correct Answer: 2 1 3 1 4 1 5 1 6 1 7 0

← Previous Question Next Question→

More Questions from Control Instructions

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion