VOID |
![]() ![]() ![]() |
The VOID statement discards the result of an associated expression.
Format
VOID expr
where
The VOID statement evaluates the supplied expression and discards the result. It is intended for use when calling functions for which the returned value is not used by the program. Us of VOID removes the need for a dummy variable and possible compiler warning messages regarding a variable that is set but never used.
Example
VOID KEYIN()
The above statement waits for the user to press a key but discards the input data. |