Skip to main content

Introduction to Subroutines

  • Chapter
  • 286 Accesses

Abstract

The aims of this chapter are:

  • to consider some of the reasons for the inclusion of subroutines in a programming language;

  • to introduce with a concrete example some of the concepts and ideas involved with the definition and use of subroutines:

    • the INTERFACE statement and interface blocks;

    • parameters;

    • the INTENT attribute for parameters;

    • the CALL statement;

    • scope of variables;

    • local variables and local variables and the SAVE attribute;

    • the use of parameters to report on the status of the action carried out in the subroutine;

A man should keep his brain attic stacked with all the furniture he is likely to use, and the rest he can put away in the lumber room of his library, where he can get at it if he wants.

Sir Arthur Conan-Doyle, Five Orange Pips.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about 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

© 1995 Springer-Verlag London Limited

About this chapter

Cite this chapter

Chivers, I.D., Sleightholme, J. (1995). Introduction to Subroutines. In: Introducing Fortran 90. Springer, London. https://doi.org/10.1007/978-1-4471-3031-4_22

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-3031-4_22

  • Publisher Name: Springer, London

  • Print ISBN: 978-3-540-19940-3

  • Online ISBN: 978-1-4471-3031-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics