What is the difference between a function and a subroutine? |
[Improve]
A function returns a value whereas a subroutine does not. A function should not change the values of actual arguments whereas a subroutine could change them.
First answer by ID0995972686. Last edit by Moobler. Contributor trust: 201 [recommend contributor]. Question popularity: 21 [recommend question].



