Program Abstraction - functions and procedures
Computing usage of the term "function" derives from the mathematical term but is much less strict. In programming (except in functional programming), a function may return different values each time it is called with the same argument values and may (but should not) have side effects.
A procedure is a function which returns no value but has only side-effects. The C language, for example, has no procedures, only functions. ANSI C even defines a type, void, for the result of a function that has no result.
Last Updated 01/05/2000
© L.Heath, 2000