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).
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
(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.
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 […]
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 […]
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.
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 […]