1.

What Is The Difference Between A Null Pointer And A Void Pointer?

Answer»

A NULL pointer is a pointer of any type whose value is ZERO. A void pointer is a pointer to an object of an UNKNOWN type, and is guaranteed to have enough BITS to hold a pointer to any object. A void pointer is not guaranteed to have enough bits to point to a function (THOUGH in general practice it does).

A NULL pointer is a pointer of any type whose value is zero. A void pointer is a pointer to an object of an unknown type, and is guaranteed to have enough bits to hold a pointer to any object. A void pointer is not guaranteed to have enough bits to point to a function (though in general practice it does).



Discussion

No Comment Found