Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1978 I. R. Wilson and A. M. Addyman
About this chapter
Cite this chapter
Wilson, I.R., Addyman, A.M. (1978). Variables, Constants and Expressions. In: A Practical Introduction to Pascal. Springer, New York, NY. https://doi.org/10.1007/978-1-4757-1677-1_4
Download citation
DOI: https://doi.org/10.1007/978-1-4757-1677-1_4
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4757-1679-5
Online ISBN: 978-1-4757-1677-1
eBook Packages: Springer Book Archive