unsigned
| Example: unsigned |
Used in variable declarations as a Type-Specifier to indicate that the variable cannot be marked with a negative sign. The minimum value is 0. It applies to char, int, and long data types.
The following table illustrates the difference between signed and unsigned variables.
| Type | Size | Unsigned | Signed (normal) |
|---|---|---|---|
| char | 8 bits | 0 to 255 | -128 to 127 |
| int | 16 bits | 0 to 65,535 | -32,768 to 32,767 |
| long | 32 bits | 0 to 4,294,967,295 | -2,147,483,648 to 2,147,483,647 |

