Previous Topic

Next Topic

Book Contents

Book Index

Tutorial: Subroutines

Subroutines are an important tool for creating well structured programs. A subroutine is a block of program code that once written can be invoked from several places in a program to perform its function. Think of a subroutine as a re-usable building block.

What this tutorial will teach you (Outcomes)

What you need to do or know first (Prerequisites)

Previous Topic

Next Topic

In This Chapter

Subroutines: What are they?

Subroutines: Why use them?

Subroutines: The subroutine stack

Subroutines: Variations on a theme

Subroutines: Passing arguments and results

Subroutines: Style guide