How Is A Subroutine defend in a program ? how is it used in the main program? give an example
Answers
Answered by
1
Answer:
In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. ... The name subprogram suggests a subroutine behaves in much the same way as a computer program that is used as one step in a larger program or another subprogram.
Answered by
0
Answer:
In computer programming, a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit.
use:
In the main program, a subroutine is activated by using a CALL statement which includes the subroutine name followed by the list of inputs to and outputs from the subroutine surrounded by parenthesis. The inputs and outputs are collectively called the arguments.
Similar questions