Definition Edit

A subroutine (also called a subprogram) is “a routine that can be part of another routine; analogous to a sentence within a paragraph of narrative text.”[1]

Overview Edit

As the name suggests, a subprogram behaves in much the same way as a complete computer program that is used as a step in a larger program. A subroutine is often coded so that it can be executed (called) several times and/or from several places during a single execution of the program, including from other subroutines, and branch back (return) to the point after the call once its task is done.


  1. U.S. Copyright Office, Compendium of Copyright Office Practices II, §326 (1984).

See also Edit

This page uses Creative Commons Licensed content from Wikipedia (view authors). Smallwikipedialogo.png

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.