Topic 2 Notes
Topic 2 Notes
Integer types
The type INTEGER comprises a subset of the whole numbers whose size may vary among
individual computer systems. It is assumed that all operations on data of this type are exact and
correspond to the ordinary laws of arithmetic, and that the computation will be interrupted in the
case of a result lying outside the representable subset. This event is called overflow.
The standard operators are the four basic arithmetic operations of addition (+), subtraction (-),
multiplication (*), and division (/, DIV).
Whereas the slash denotes ordinary division resulting in a value of type REAL, the operator DIV
denotes integer division resulting in a value of type INTEGER.
Revision questions
1. The term data type
2. Differentiate between primitive and standard data types
3. What operations can be performed on character type
4. What are the items stored in Boolean type