Hi Shubham, This may be because your final data type you have chosen for your output is float, n the one which you are trying to print is of int data type (i.e. %d).
Suggestion : Try changing %d to %f and see whether it works for you or not? Thanks & Regards, Pratts On 01-Mar-2013, at 1:11, Shubham Sandeep <[email protected]> wrote: > code snippet: > int main() > { > printf ("%d\n",(float)((int)(3.5/2))); > return 0; > } > > -- > Regards, > SHUBHAM SANDEEP > IT 3rd yr. > NIT ALD. > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
