noun
- a set of instructions designed to perform a frequently used operation within a computer program
Usage: computing
Examples
- The programmer wrote a subroutine to calculate the square root.
- This subroutine can be called from multiple parts of the main program.
- The sorting subroutine improved the program’s efficiency.
- Each subroutine should have a clear, specific purpose.
- The error occurred in the data validation subroutine.
- We need to debug the subroutine that handles user input.