This preview shows page 1. Sign up to view the full content.
8.3
Functionality of Imperative Languages
235
Most highlevel languages have four distinct data types built into the
language: integer numbers, real numbers, characters, and Boolean values.
Integers
The integer data type represents a range of integer values from
the smallest to the largest. The range varies depending upon how many
bytes are assigned to represent an integer value. Some highlevel languages
provide several integer types of different sizes, which allows the user to
choose the one that fits the data in a particular problem.
The operations that can be applied to integers are the standard arith
metic and relational operators. Addition and subtraction are represented
by the standard symbols + and
±
. Multiplication and division are usually
represented by * and /. Depending on the language, integer division may
return a real number or the integer quotient. Some languages have two
symbols for division, one that returns a real result and one that returns the
integer quotient. Most languages also have an operator that returns the
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.
 Fall '10
 MARIANAKANT

Click to edit the document details