Subroutine


noun, Computers.
1.
an instruction sequence in a machine or assembly language program that can be prewritten and referred to as often as needed.
Compare procedure (def 4a).
noun
1.
a section of a computer program that is stored only once but can be used when required at several different points in the program, thus saving space Also called procedure
programming
(Or “procedure”) A sequence of instructions for performing a particular task. Most programming languages, including most machine languages, allow the programmer to define subroutines. This allows the subroutine code to be called from multiple places, even from within itself (in which case it is called recursive). The programming language implementation takes care of returning control to (just after) the calling location, usually with the support of call and return instructions at machine language level.
Most languages also allow arguments to be passed to the subroutine, and one, or occasionally more, return values to be passed back.
A function is often very similar to a subroutine, the main difference being that it is called chiefly for its return value, rather than for any side effects.
(1996-10-01)

Read Also:

  • Subrule

    noun 1. a principle or regulation governing conduct, action, procedure, arrangement, etc.: the rules of chess. 2. the code of regulations observed by a religious order or congregation: the Franciscan rule. 3. the customary or normal circumstance, occurrence, manner, practice, quality, etc.: the rule rather than the exception. 4. control, government, or dominion: under the […]

  • Subs

    noun 1. a submarine. 2. a substitute. 3. a submarine sandwich. See hero sandwich. 4. a subcontractor. 5. a sublieutenant. 6. a subordinate. 7. a subaltern. 8. British. an advance against one’s wages, especially one granted as a subsistence allowance. 9. Photography. a substratum. verb (used without object), subbed, subbing. 10. to act as a […]

  • Sub-Saharan

    adjective 1. of, relating to, or in Africa south of the Sahara Desert: a sub-Saharan country; sub-Saharan peoples. adjective 1. in, of, or relating to Africa south of the Sahara desert sub-Saharan definition Region in Africa south of the Sahara desert.

  • Subsale

    noun 1. the act of selling. 2. a quantity sold. 3. opportunity to sell; demand: slow sale. 4. a special disposal of goods, as at reduced prices. 5. transfer of property for money or credit. 6. an auction. Idioms 7. for sale, offered to be sold; made available to purchasers. 8. on sale, able to […]

  • Subsample

    noun 1. a specimen from or a small part of a sample. verb (used with object), subsampled, subsampling. 2. to take a subsample of.


Disclaimer: Subroutine definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.