Sub routine concepts

What do you mean by sub routine? Explain in detail with appropriate description.

E

Expert

Verified

Sub routine is a part of code in a larger program which performs a specific task and is relatively independent of the remaining code. Subroutine is the synonym for a function, method, procedure or a sub program. If a subroutine is called, the control transfers to its definition. After the execution of such lines of code, the control returns to the main program or the function. The syntax of lots of programming languages comprises support for making self contained subroutines and for calling and returning from them.

   Related Questions in Computer Engineering

©TutorsGlobe All rights reserved 2022-2023.