subroutine
noun
Pronunciation: /ˈsʌbruːtiːn/
Definition
A set of instructions designed to perform a frequently used operation within a computer program, which can be called upon by the main program at any time.
Examples
The software architecture relies on a complex subroutine to handle data validation.
By modularizing the code, developers can test each subroutine independently before integration.
The main loop pauses execution while the subroutine processes the user input.
How to Use subroutine
- call a subroutine (collocation)
- to execute the code contained within the subroutine — "The main program will call a subroutine to calculate the tax rate."
- invoke a subroutine (collocation)
- a more formal way to say 'execute' or 'run' a subroutine — "You must invoke a subroutine before the variable can be updated."
Synonyms of subroutine
Words with a similar meaning to subroutine:
Browse the full Anaversity dictionary