main()
{
float a=3.2e40;
printf("%d",a);
}
Answer Posted / deepali chandra
the o/p=0
because here we are trying to print the value in int form
which has been of float datatype.since float has a higher
precendence over int therefore it will give the o/p=0 and
similarly after this every output will be =0.this is the
function of the compiler that we cannot print the value of
a higher data type using a lower datatype.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How is pointer initialized in c?
What is meant by gets in c?
Why do we need volatile in c?
What is p in text message?
I have a varargs function which accepts a float parameter?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What is selection sort in c?
What is static and volatile in c?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
Is there anything like an ifdef for typedefs?
Explain About fork()?
Can you write a programmer for FACTORIAL using recursion?
Create a simple code fragment that will swap the values of two variables num1 and num2.
Explain what is the difference between null and nul?
Which is best linux os?