Computer Science / Unit 3 CS 0091 short lesson, about 20 seconds
The Data Type
Captions available
The idea
A data type defines how a computer processes data by fixing two things: the possible values, and the operations allowed on those values.
In practice
The integer type holds whole numbers within a range and grants addition, subtraction, multiplication, and division — the operations a balance needs.
Where people slip
Operations are part of the type, not extras.
Your place on the trail
Every lesson rests on earlier ones and opens later ones. Tap any to jump.
Something wrong in this lesson? Flag it · Sources for Computer Science