Chapter 6 - Subprograms

Chapter 6 - Subprograms


Dividing up larger programs into subprograms is the topic of this chapter. The most used type of subprogram, namely the SUBROUTINE, is introduced. An important reason for the use of subprograms is the opportunity to access professionally written routines, available in large library, such as IMSL and NAG. However, to use other people's routines a good knowledge is required of how information is passed to and from the routine. The idea of arguments and data passing is described along with the relevant rules. The confusing concept of dummy arguments is discussed.

The chapter closes with a discussion of how a user may program their own functions, and how these are used.


Have a look at the sample programs for this chapter

Come back to the main page