Programming Languages
C
Objective
Mar 08, 2013
What will be output of the following c code?
void main()
{
float f=3.4e39;
printf("%f",f);
}
Detailed Explanation
If you will assign value beyond the range of float data type to the float variable it will not show any compiler error. It will store infinity.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts