Friday 19 June 2009

Memory representation of float data type in C.




Size of float data type is 32 bit. Its 32 bit is used as:
1. 23 bit: for mantissa
2. 8 bit: for exponent(including one signed bit of exponent)
3. 1 bit: for signed bit of mantissa





Memory representation of: float a = -3.3f;












For this you have to follow following steps:





Step1: convert the number (3.3) into binary form binary value of 3.3 is

No comments:

Post a Comment