English, asked by Sady3033, 1 year ago

A declaration float a, b; occupies ___ of memory

Answers

Answered by vinaydudam
3

Answer:

A declaration float a, b occupies 8 bytes of memory

Answered by sourasghotekar123
0

Answer: 8 bytes

Explanation:

the float data type takes up 4 bytes. So in total a, and b takes up 8 bytes.

Float is a data type used to represent floating point numbers. It is a 32-bit IEEE 754 single-precision floating-point number (1 bit for sign, 8 bits for exponent, 23* bits for value. It has 6 decimal places of precision.

Float is mainly used in graphics libraries due to their extremely high demands on computing power.

Since the range is smaller than the double type, the float was the better choice when working with thousands or millions of floating-point numbers because of its speed.

However, the advantage of float over double is negligible because the calculation speed has increased dramatically with the new processors. Float is also used in situations that can tolerate round-off errors that occur due to floating position precision to seven digits.

Another common use for float is currencies. Programmers can define the number of decimal places using additional parameters.

#SPJ6

Similar questions