Tuesday 24 July 2012

Functioning of printf : Inability to perform conversions

Functioning of printf : Inability to perform conversions using code with output

printf("%f\n",6);

printf("%d",18.0);

}

Both the above results are unexpected. The reason is that first we let printf to convert 6 to 6.0

Then we let printf to convert 18.0 to 18

But printf is not intelligent enough to perform this conversion. So we are getting unexpected results.
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: