Data Types
Data Types
Integer Range
-231 0 231-1
Data Types and Variables
● unsigned int
● unsigned is a qualifier that can be applied to certain
types (including int), which effectively doubles the
positive range of variables of that type, at the cost of
disallowing any negative values.
0 231 232-1
Data Types and Variables
● char
● The char data type is used for variables that will store single
characters.
Character Range
-128 0 127
Data Types and Variables
● float
● The float data type is used for variables that will store
floating-point values, also known as real numbers.
int number;
char letter;