A box labeled with the boolean data type can only contain a single switch that’s either on or off.
Archive for Uncategorized
A box labeled with the character data type can only contain a single character–a letter, a number, a punctuation mark, etc.
A box labeled with the integer data type can only contain a single number with no digits after the decimal point.
A box labeled with the float data type (short forĀ floating-point number) can only contain a single number that may have digits after the decimal point.
Each box with a name and a data type is called a variable.
The stuff inside a variable (box) is called the variable’s value.
The data types we saw so far are called primitive data types:
Values of primitive data types can be combined into bigger data types called data structures.
Multiples values of the same data type can be strung together into an array.
An array of integers is a data type (data structure).