The implementation used to test the programs in this book allocates bytes as follows for the various data types:
Type | Bytes (typical) | Stores | ||||
char | 1 | character | ||||
short | 2 | integer | ||||
int | 4 | integer | ||||
long | 4 | integer | ||||
float | 4 | floating-point number | ||||
double | 8 | floating-point number | ||||
long double | 8 | floating-point number | ||||