How is a subroutine defined in a program ? How is it used in the main program ? give an example
Answers
Answered by
5
Answer:
In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. ... In different programming languages, a subroutine may be called a routine, subprogram, function, method, or procedure.A routine or subroutine, also referred to as a function, procedure, and subprogram, is code called and executed anywhere in a program. For example, a routine may be used to save a file or display the time
Answered by
3
In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. ... In different programming languages, a subroutine may be called a routine, subprogram, function, method, or procedure.
Hope this much helps uh ❣️
Similar questions
Computer Science,
1 month ago
Hindi,
1 month ago
Hindi,
2 months ago
Computer Science,
2 months ago
World Languages,
8 months ago