noun

subroutine

subroutine

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.

((a/the)) subroutine a self-contained sequence of actions. The program calls a subroutine.

Synonyms: function, procedure, module

From the prefix 'sub-' (under) and 'routine' (a regular course of procedure). It means a routine that is part of a larger routine.

Think of it as a 'mini-routine' or a helper task within a main program.

This page is designed for learning support. Please use it as a learning reference, not as a formal reference.