C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
void
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
  Keyword:  void
 
  Syntax:   void declarator
 
  Summary:  When used as a function return type, specifies that the
            function does not return a value. When used for a
            function's parameter list, specifies that the function
            takes no parameters. When used in the declaration of a
            pointer, specifies that the pointer is a "universal"
            pointer.
 
     If a pointer's type is void *, the pointer can point to any
     variable that is not declared with the const or volatile keywords.
     A void pointer cannot be dereferenced unless it is cast to another
     type. A void pointer can be converted into any other type of
     data pointer.
 
     A void pointer can point to a function, but not to a class
     member in C++.
 
     You cannot declare a variable of type void.
 
     Example
 
          void vobject;             // Error
          void *pv;                 // Okay
          int  *pint;
          int i;
 
          void main()               // main has no return value
          {
              pv = &i;
              pint = (int *)pv;     // Cast optional in C
                                    //     required in C++
          }
                                    -♦-