values between 0 and 255, signed characters have values from
–
128 to 127.
Float is used to define floating point numbers, which are real numbers expressed to 6 digits of
precision. When the accuracy of the floating point number is insufficient, we can use the double to
define the number.
The double is the same as a float but with a greater precision. To extend
precision further we can use a long double, which consumes 80 bits of memory space.
For example, float a;
Void is used to specify the type of a function.
The size and range of each data type is shown in
Table 2.1
.
Do'stlaringiz bilan baham: |