Showing posts with label unsigned short int. Show all posts
Showing posts with label unsigned short int. Show all posts
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.