Subroutine: Difference between revisions
Appearance
Created page with "In computer programming, a '''subroutine''' is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then be used in programs wher..." |
No edit summary |
||
Line 1: | Line 1: | ||
In computer programming, a '''subroutine''' is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then be used in programs wherever that particular [[Task (computing)|task]] should be performed. | In computer programming, a '''subroutine''' is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then be used in programs wherever that particular [[Task (computing)|task]] should be performed. | ||
Subprograms may be defined within programs, or separately in libraries that can be used by multiple programs. In different programming languages, a subroutine may be called a '''procedure''', a '''function''', a '''routine''', a method, or a '''subprogram'''. The generic term '''callable unit''' is sometimes used. | Subprograms may be defined within programs, or separately in libraries that can be used by multiple programs. In different programming languages, a subroutine may be called a '''procedure''', a '''function''', a '''routine''', a method, or a '''subprogram'''. The generic term '''callable unit''' is sometimes used. [https://en.wikipedia.org/wiki/Subroutine] | ||
[[Category:Glossary]] | [[Category:Glossary]] |
Revision as of 16:13, 1 July 2017
In computer programming, a subroutine is a sequence of program instructions that perform a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed.
Subprograms may be defined within programs, or separately in libraries that can be used by multiple programs. In different programming languages, a subroutine may be called a procedure, a function, a routine, a method, or a subprogram. The generic term callable unit is sometimes used. [1]