Printing a floating point with %d conversion specifier will not print the expected resultss !
On Sat, Sep 17, 2011 at 1:13 AM, Anshul AGARWAL <[email protected]>wrote: > #include<stdio.h> > int main() > {float t; > long x; > > > t=98; > printf("%d\n",t); > printf("%f\n",x); > { > x=1; > printf("%f\n",x); > { > > x=30; > printf("%f\n",x); > } > printf("%f\n",x); > } > x==9; > printf("%f\n",x); > > } > ---------------- > ----------------------------------------------------------- > *Anshul Agarwal > Nit Allahabad > Computer Science** > * > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
