Section 6: Subprograms

Chapter
Part of the Lecture Notes in Computer Science book series (LNCS, volume 2219)

Abstract

A subprogram is a program unit or intrinsic operation whose execution is invoked by a subprogram call. There are two forms of subprogram: procedures and functions. A procedure call is a statement; a function call is an expression and returns a value. The definition of a subprogram can be given in two parts: a subprogram declaration defining its interface, and a subprogram_body defining its execution. Operators and enumeration literals are functions.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© The MITRE Corporation, Inc. 2000

Personalised recommendations