A float occupies 4 bytes in memory. How many bits are used
to store exponent part?
since we can have up to 38 number for exponent so 2 ki power
6 6, 6 bits will be used. If 6 bits are used why do not we
have up to 64 numbers in exponent?



A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can h..

Answer / Shailesh Kumar Pandey

'The IEEE 754 standard defines the binary floating-point format used in most modern computers. The single-precision floating-point format, which is a 32-bit value and represents floats, uses 8 bits for the exponent (exponent part), not 6. This allows for a range of values from -126 to +127, not up to 64 as you mentioned.nThe reason why we don't have up to 64 numbers in the exponent is that exponents smaller than -126 or greater than +127 are considered subnormal or infinity/NaN values, which require special handling.'

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is the difference between File pointer and Internal Charecter Pointer?

2 Answers   TATA,


What is the acronym for ansi?

1 Answers  


What is the diffrent between while and do while statement ?

6 Answers  


How to implement a packet in C

1 Answers   Aricent,


What is pre-emptive data structure and explain it with example?

1 Answers  


write a c program to find the sum of five entered numbers using an array named number

0 Answers   TATA,


write the program for prime numbers?

73 Answers   Accenture, Aptech, Infosys, TCS,


Explain the bubble sort algorithm.

1 Answers  


what is printf

5 Answers   MVSR, Satyam,


What is the meaning of this decleration? unsigned char (*pArray[10][10]); please reply.

1 Answers  


int x=sizeof(!5.856); What will value of variable x?

2 Answers  


What are the applications of c language?

1 Answers  


Categories