main()
{
float a=3.2e40;
printf("%d",a);
}
Answers were Sorted based on User's Feedback
Answer / pankaj bhalerao
i run this and i found that the answer is zero because a
is declared as float and it is print ans integer and its
mantissa part is also a float therefore the output is zero.
thank you...
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / pushpanjali panda
after running the program i got the answer is 0.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / iftekhar
main()
{
int i=300*300/300;
printf("%d",i);
}
| Is This Answer Correct ? | 12 Yes | 9 No |
Answer / vignesh1988i
as for as i know ,
here however 'a' is a float variable when it comes
to printf , the floating numbers will be truncated and it
outputs as 3
thank u
| Is This Answer Correct ? | 11 Yes | 9 No |
Answer / 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 |
Answer / siva
a is declared as float but it is printed as integer so it
must be wrong.........
| Is This Answer Correct ? | 0 Yes | 1 No |
it is not execute, bcz in the printf satement declared as
integer so answer is 0.
| Is This Answer Correct ? | 0 Yes | 1 No |
what is the flow of execution in cprogram? ex:printf();,scanf();
Write a program in c using only loops to print * * * * * *******
What is the use of a static variable in c?
How can you return multiple values from a function?
O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR
How we can set and clear bit in a byte using macro function?
What are the storage classes in C?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
Total of how many functions are available in c?
where do we use structure pointer?