Range of Data type
Range of any Data type = (A) number of bit occupied by a data type
Where, A = number of bits available in the language
which is understand by computer i.e., 2
bits.
Range of byte
Range of byte
= (2) 8 = 28/ 2 = 27
// divided
into two parts to get –ve and +ve range
27 27
- ve range -27 to -1
+ve range +1 to + 27
-1 -1
0 27
- 1
Range
of byte = 27 to 27 – 1
=
-128 to +127