Monday, 29 September 2014

Function? Procedure? Subroutine?

Function:
Takes an argument; returns a result.

Procedure:
Takes an argument; doesn't return a result.

Subroutine:
Doesn't take an argument; doesn't return a result.
A labelled section of code that can be referred to within the main code when necessary.

No comments:

Post a Comment