Function

From Valve Developer Community
Revision as of 16:10, 21 July 2005 by TheJ89 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A function, in programming, is a block of code that can be executed at any time within the code.

Functions consist of the return type (void if no return), the function name, the arguments (variables defined outside of the function, but used inside of the function), and the code block.