Skip to main content

Variables, Constants and Expressions

  • Chapter
A Practical Introduction to Pascal
  • 49 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 74.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics