Professional Documents
Culture Documents
ICP - Topic 2 - Data Types and Variables
ICP - Topic 2 - Data Types and Variables
ICP - Topic 2 - Data Types and Variables
Examples
DATA TYPES
The data type of a variable determines what type of data is
stored in a variable and the possible range of data stored in a
variable.
INTEGER DATA TYPES
Type Storage size Value range Description
char 1 byte -128 to 127 or For characters
0 to 255
int 4 bytes -2,147,483,648 to For integers
2,147,483,647 (whole numbers)
is the same as