Sabrina Rispin's Explore Memory* - OpenLearning

Q1:

size of unsigned long: 4
size of unsigned int: 4
size of unsigned long long: 8
size of unsigned short: 2
 
size of signed long: 4
size of signed int: 4
size of signed long long: 8
size of signed short: 2
 
size of  long: 4
size of  int: 4
size of  long long: 8
size of  short: 2
 
size of float: 4
size of double: 8
 
Q2:
All of the different types are stored directly beside each other (after taking into account the space/bytes saved for each type).
 
Q3:
When an unsigned ______ overflows it either truncates the integer or goes back to 0.
Signed ______ become negative numbers.
 
Q4:
THEY ARE ALL SIGNED (when not specified).
 

Comments

Chat