The void data type always represents an empty set of values. The only object that can be declared with the type specifier void is a pointer.
You cannot declare a variable of type void, but you can explicitly convert any expression to type void. The resulting expression can only be used as one of the following:
Related information