Variables, Constants and Expressions
In previous chapters we have used only real and integer variables. These are, in fact, four standard simple types in Pascal—integer, real, character and boolean. Each type has its own forms of constant, its own operators (+, -, etc.) and its own ‘standard functions’. These standard functions are named operations which may be applied to one value to yield another value. For example, one standard function is sqrt and sqrt (a) calculates from the value of the variable a the value of its square root.
KeywordsBoolean Variable Standard Function Boolean Expression Usual Order Repeat Read
Unable to display preview. Download preview PDF.