Next: Functions and Arrays Up: Functions Previous: Functions

void functions

The void function provide a way of emulating PASCAL type procedures.

If you do not want to return a value you must use the return type void and miss out the return statement:

NOTE: We must have () even for no parameters unlike some languages.
Wed Sep 14 10:06:31 BST 1994