Examples: can you tell which ones are legal variable names?
Percent %increase big_mac 1stPtr
camelNotation y?n L____ _Height if
| keyword | type | bytes required | min | max |
| char | Character | 1 | -128 | 127 |
| short | Short integer | 2 | -32768 | 32767 |
| int | Integer | 4 | -2,147,483,648 | 2,147,438,647 |
| long | Long Integer | 4 | -2,147,483,648 | 2,147,438,647 |
| long long | Long long integer | 8 | -9223372036854775808 | 9223372036854775807 |
| unsigned char | Unsigned character | 1 | 0 | 255 |
| unsigned short | Unsigned short interger | 2 | 0 | 65535 |
| unsigned int | Unsigned integer | 4 | 0 | 4,294,967,295 |
| unsigned long | Unsigned long integer | 4 | 0 | 4,294,967,295 |
| unsigned long long | Unsigned long long integer | 8 | 0 | 18446744073709551615 |
| float | Single-precision floating-point | 4 | ~1.2E-38 |
~3.4E+38 |
| double | double-precision floating-point | 8 | ~2.2E-308 |
~1.8E+308 |
Different architectures have different ranges. You can find this out for your computer by compiling and running a program.
Exercises: