subroutine
US /ˈsʌb.ruː.tiːn/
UK /ˈsʌbruːˌtiːn/
명사
서브루틴, 하위 프로그램
a sequence of instructions within a larger program that performs a specific task, often used multiple times within the program or by other programs
예시:
•
The main program calls a subroutine to handle data validation.
메인 프로그램은 데이터 유효성 검사를 처리하기 위해 서브루틴을 호출한다.
•
Writing modular code with subroutines improves readability and reusability.
서브루틴을 사용하여 모듈식 코드를 작성하면 가독성과 재사용성이 향상된다.