Computer Science for IGCSE & O level - Programming (Section 9 - No. 15)

What is the primary difference between an `INTEGER` and a `REAL` data type?
INTEGER stores only numbers, REAL stores only text.
INTEGER stores whole numbers, REAL stores numbers with decimal points.
INTEGER stores text strings, REAL stores boolean values.
INTEGER stores boolean values, REAL stores whole numbers.

Explanation

REAL (or floating-point) numbers can represent decimal points; INTEGER is for whole numbers.

Comments (0)

Advertisement