S
subramanian100in
In
http://c-faq.com/malloc/calloc.html
comp.lang.c FAQ list · Question 7.31 is present.
In the answer to the question, part of the answer is
calloc's zero fill is all-bits-zero, and is therefore guaranteed to
yield the value 0 for all integral types (including '\0' for character
types). But it does not guarantee useful null pointer values (see
section 5 of this list) or floating-point zero values.
My Question on this:
Here it is mentioned that calloc's zero fill does not guarantee
floating-point zero values.
But when every bit of an object is set to zero, won't the object value
be zero ie can the floating point variable be non-zero ? I am unable
to understand this. If I require to learn about floating points to
understand this, can someone suggest links to good material on
floating points?
Thanks
http://c-faq.com/malloc/calloc.html
comp.lang.c FAQ list · Question 7.31 is present.
In the answer to the question, part of the answer is
calloc's zero fill is all-bits-zero, and is therefore guaranteed to
yield the value 0 for all integral types (including '\0' for character
types). But it does not guarantee useful null pointer values (see
section 5 of this list) or floating-point zero values.
My Question on this:
Here it is mentioned that calloc's zero fill does not guarantee
floating-point zero values.
But when every bit of an object is set to zero, won't the object value
be zero ie can the floating point variable be non-zero ? I am unable
to understand this. If I require to learn about floating points to
understand this, can someone suggest links to good material on
floating points?
Thanks