main()
{
float a=3.2e40;
printf("%d",a);
}
Answer Posted / 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 |
Post New Answer View All Answers
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
The difference between printf and fprintf is ?
Tell us the use of fflush() function in c language?
Explain the bubble sort algorithm.
Differentiate between the = symbol and == symbol?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
What is ctrl c called?
Why do we write return 0 in c?
Write a C program to count the number of email on text
What is difference between constant pointer and constant variable?
Explain Function Pointer?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Can i use “int” data type to store the value 32768? Why?
What is the easiest sorting method to use?
What is the use of a static variable in c?