hi all,
I have a code
the output isCode:#include<stdio.h> main(){ int i = 0; float f; printf("%d %d %d\n",i>0,i<0,i==0); printf("%d %d %f\n",i>0,i<0,i==0); f = (i==0); printf("f=%f\n",f); printf("%d %d %f\n",i>0,i<0,i==0); }
0 0 1
0 0 0.000000
f=1.000000
0 0 1.000000
Why are results diff 2nd and 4th line in above ?



1Likes
LinkBack URL
About LinkBacks



