what is void
What is void
Quick Scoop
Void usually means empty, nothing, or a lack of something. In programming, it often means a function returns no value; in everyday language, it can mean an empty space or a sense of absence.
[5][9]Common meanings
- Everyday use: an empty space, gap, or nothingness. [9][5]
- Programming: a return type that means the function does not send back a value. [1][4]
- Legal use: something that is void has no legal force or effect. [5]
In simple terms
If you hear “the void,” think emptiness. If you see “void” in code, think this function does an action but gives nothing back.
[1][5]Example
In programming, a function that prints a message might be marked void because it does not return a result.
[4][1]Bottom line: void means “nothing returned” in code, and “empty or null” in general language.
[9][5]