subroutine
Translation
subroutine
Examples
The program calls a subroutine to calculate the total.
The programme calls a subroutine to calculate the total.
This subroutine handles all the error messages.
This subroutine handles all the error messages.
Grammar Patterns
((a/the)) subroutine a self-contained sequence of actions. The program calls a subroutine.
Similar Words
Synonyms: function, procedure, module
Etymology
From the prefix 'sub-' (under) and 'routine' (a regular course of procedure). It means a routine that is part of a larger routine.
Memory Tips
Think of it as a 'mini-routine' or a helper task within a main program.