Definition, Meaning & Synonyms
subroutine
noun
/ˈsʌb.ruː.tiːn/
Definition
A subroutine is a set of instructions designed to perform a frequently used operation within a program.
Examples
- The main program called the subroutine to calculate the area of a rectangle.
- By using subroutines, the developer reduced repetition in the code.
Meaning
Subroutines help programmers break down complex problems into smaller, manageable parts, allowing for greater efficiency and organization in code.
Synonyms
- Function
- Procedure
- Method
- Routine