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.
0 comments: