what is void

11 months ago 17
Nature

The term "void" has multiple meanings depending on the context. Here are some of the most common definitions:

  • Void type: In several programming languages derived from C and Algol68, void is the return type of a function that returns normally, but does not provide a result value to its caller. A function with void result type ends either by reaching the end of the function or by executing a return statement with no returned value.

  • Empty space: Void can refer to an empty space or emptiness. For example, a void space is a large hole or empty space.

  • Containing nothing: Void can also mean "containing nothing." For instance, a void space is a space that is empty or contains nothing.

  • Devoid or destitute: Void can be used to describe something that is devoid or destitute of something specified. For example, a person void of common sense is someone who lacks common sense.

  • Invalid: When something is void, it is legally invalid. For example, an agreement is void if obtained by force.

In summary, the term "void" can refer to an empty space, a function return type that does not provide a result value, something that is devoid or destitute of something specified, or something that is legally invalid.