When a programmer writes the subroutine statement in a program, then subroutine can modify its arguments, but it does not return a value.

Example

                                        

subroutine name(arg1, arg2, ....)
    [declarations, including those for the arguments]
    [executable statements]
end subroutine [name]

A subroutine is invokes using the call statement.

 

Suggest An Answer

No suggestions avaliable!