Variables, Constants and Expressions
In previous chapters we have used only real and integer variables. There are, in fact, four standard scalar types of variable 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 Repeat Read Great Precedence
Unable to display preview. Download preview PDF.