Integer
Used to store whole numbers e.g age or house number
Real/Float
Numbers with a decimal place e.g money (£2.45)
Boolean
TRUE/FALSE values (e.g 18+ in a voting program)
Character
Stores a single character e.g storing the input for a menu within a program (option A, B, C or D)
String
Used to store alphanumeric characters e.g the word “Programming”. Other examples include names or DOB with / to separate values
Casting
The process of changing a variable’s data type within a program.
Example of Casting -