conversion frm int to float and float to int is very poor in case of
printf funtion
so when we give the input to t then that value is displayed for all
the printf function
since %f modifier doesn't accept x (int) as
a successful argument so it takes the
latest float value..


On May 22, 2:41 pm, sourabh jakhar <[email protected]> wrote:
> #include<stdio.h>
> void main()
> {
>     long x;
>     float t;
>     scanf("%f",&t);
>     printf("%d\n",t);
>     x=90;
>     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);
>
> }
>
> CAN ANYBODY EXPLAIN THE OUTPUT
>
> --
> SOURABH JAKHAR,(CSE)(3 year)
> ROOM NO 167 ,
> TILAK,HOSTEL
> 'MNNIT ALLAHABAD
>
> The Law of Win says, "Let's not do it your way or my way; let's do it the
> best way."

-- 
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.

Reply via email to