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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Rights 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