Difference between unsigned short int and long int?
Posted by Raj
Difference between unsigned short int and long int?
- An unsigned integer is either positive or zero.
- An unsigned integer containing n bits can have a value between 0 and 2 n - 1
- You can write a number between 0 and 10 n - 1.
- unsigned short integers: (16 bits)
- unsigned long integers (32 bits)
- unsigned Short integers can be used to store numbers between 0 and 2 16 - 1, or 65,535.
- unsigned Long integers can be used to store numbers between 0 and 2 32 - 1, or 4,294,967,295.
- and unsigned double integers can be used to store numbers between 0 and 2 64 - 1, or 18,446,744,073,709,551,615.
This entry was posted on October 4, 2009 at 12:14 pm, and is filed under
data types in c programming,
Difference between unsigned short int and long int,
signed short int,
unsigned long int,
unsigned short int
.You can leave a response, or trackback from your own site.