voidfunction
nounUK /vɔɪd ˈfʌŋkʃən/
US /vɔɪd ˈfʌŋkʃən/
A void function is a piece of computer code that does a job but does not give anything back.
The programmer wrote a void function to print a welcome message on the screen.
RELATED WORDS
OTHER MEANINGS
2. In some languages, a function declared to return no value at all.
In C, a void function cannot be used in an expression that needs a value.
3. A routine used only for its side effects, such as printing or saving data.
She used a void function to log each step of the program.
4. A function whose result is ignored by the caller.
Calling the void function updated the display without storing anything.