C++ allows void pointers to be assigned only to other void pointers. In ISO/ANSI C, a pointer to void can be assigned to a pointer of any other type without an explicit cast .
Cast Expressions
Pointers