Niks wrote:
what is a void pointer?
You mean a pointer to void?
A generic pointer, a plain address. That type is returned from 'malloc'
function and from 'operator new', and is accepted by 'operator delete'
as an argument. Usually a pointer to void is used to hold a pointer to
an object of any type or of an unknown type. Has the same alignment
requirements and the same representation as 'char*'. Along with the
requirement that 'void*' can hold a pointer to any object comes the
standard conversion from a pointer to object to a pointer to void. That
conversion is implicit and the reverse can be done using 'static_cast'.
V