Today we are going to talk about a fundamental Data Type called integer. We have
various data types to study. And today we begin our session with integer Data Type.
If you want to know the size of integer programmatically , then you can by using ''
sizeof '' operator. In reality, we have numbers ranging from 0 to 9. And if you
want to represent such a large number , we have to multiply each digit with their
respective place values. In this case, also each digit must also have some place
values associated with them. In order to get the desired result , we add them up to
get 568 as our result. But this is not something that machine could understand. It
has its own number system called Binary number system. By multiplying each digit
with their respective place values and finally add them up to get the answer 15.
Range of all the data is from 0 to 15 only. But there 's one more formula available
to calculate the maximum value. And that is , 2 raise to the power n minus 1.