What are the advantages and uses of a null pointer?
As Moschops said, the NULL pointer is essentially a marker. Setting a pointer to NULL is a way of indicating the pointer is in an unusable state. Now, as for it's uses, they mostly relate to handling dynamic memory. You generally want to initialize any pointer that you don't have … Read More
Edited by Moschops