Jump to content

Function (computer programming)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by TakuyaMurata (talk | contribs) at 21:15, 26 April 2003 (new article from procedure). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

In computer programming parlance, a 'subprogram refers to a sequence of instructions, also called a subroutine or procedure. It may or may not return a value to the caller. Some programming languages (such as Pascal) contrast a procedure, which does not return a value to the caller (although it may modify objects passed by reference), with a function, which does produce a return value. Other programming languages (such as C) call all procedures "functions".