Skip to main content

An Introduction to Input and Output

  • Chapter
A Practical Introduction to Pascal

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 18 Accesses

Abstract

The Pascal statements to read data are best defined informally. As stated earlier, any number of data items may be read in one READ statement, by listing in brackets the variables to be assigned values. The declared type of each variable, in turn, determines the type of data item read—INTEGER, REAL or CHAR. Except for CHAR, all of the forms of non-named constant described in chapter 4 may appear as data. Items of non-character data must be separated from each other by at least one space or newline. Spaces and newlines are ignored before reading a non-character data item and the character which terminates the number is not read. Thus the following declarations and READ statements correspond to the data given

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Copyright information

© 1978 I. R. Wilson and A. M. Addyman

About this chapter

Cite this chapter

Wilson, I.R., Addyman, A.M. (1978). An Introduction to Input and Output. In: A Practical Introduction to Pascal. Macmillan Computer Science Series. Palgrave, London. https://doi.org/10.1007/978-1-349-03709-4_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-03709-4_5

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-23582-9

  • Online ISBN: 978-1-349-03709-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics