Skip to main content

Printing Literals

  • Chapter
Beginning BASIC

Abstract

So far our programs have only output numbers, apart from the?, which BASIC supplies whenever an INPUT instruction is reached in a program. It is a great help to our understanding of a program if comments, requests for data or explanations are printed as well as the?. Words which a program causes to be printed out are called ‘literals’, and these can very easily be incorporated into PRINT instructions. All that we need to do is to enclose the words to be printed in double quotation marks,”, and they will be printed at the time the PRINT instruction is executed.

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.

Authors

Copyright information

© 1982 P. E. Gosling

About this chapter

Cite this chapter

Gosling, P.E. (1982). Printing Literals. In: Beginning BASIC. Palgrave, London. https://doi.org/10.1007/978-1-349-16837-8_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-16837-8_5

  • Publisher Name: Palgrave, London

  • Print ISBN: 978-0-333-33336-5

  • Online ISBN: 978-1-349-16837-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics