C Programming - Control Instructions - Discussion
Discussion Forum : Control Instructions - Find Output of Program (Q.No. 13)
13.
What will be the output of the program?
#include<stdio.h>
int main()
{
int x=1, y=1;
for(; y; printf("%d %d\n", x, y))
{
y = x++ <= 5;
}
printf("\n");
return 0;
}
Discussion:
46 comments Page 5 of 5.
Shankra said:
1 decade ago
Thanks panchanana raut.
Lakshmi said:
1 decade ago
Thanks to panchan Raut
Bhaskar said:
1 decade ago
Thank you kiran.
Rashmi said:
1 decade ago
Thank you atul.
Nandini said:
9 years ago
Thanks @Kiran.
(1)
Vignesh said:
8 years ago
Thanks @Kiran.
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers