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
What is bubble sort in c?
Write a program to find factorial of a number using recursive function.
Which header file is used for clrscr?
Can stdout be forced to print somewhere other than the screen?
Why is c not oop?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Which one would you prefer - a macro or a function?
What is the purpose of main() function?
How is a macro different from a function?
Describe how arrays can be passed to a user defined function
Why is c so important?
How can I change the size of the dynamically allocated array?
What is typedef?
Is a house a shell structure?