Sunday, February 6, 2011

float overflow in c

What will happen if we will go beyond
the range of float, double and long double data type?

Answer:



If
we will assign a value which is beyond the maximum value of that data type
compiler will assign +INF if number is positive and �INF if number is negative.
If we will assign a value witch is less than minimum value of that data type
then complier will assign a garbage value or zero.






No comments:

Post a Comment