Ask a Question

What are the differences between Void Pointer & Null Pointer?


Rajni

on 2010-12-19 10:30:00  

Do not confuse null pointers with void pointers. A null pointer is a value that any pointer may take to represent that it is pointing to \"nowhere\", while a void pointer is a special type of pointer that can point to somewhere without a specific type. One refers to the value stored in the pointer itself and the other to the type of data it points to.