What are the advantages and uses of a null pointer?
studyabroad 0 Newbie Poster
Recommended Answers
Jump to PostAs 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 …
All 3 Replies
Moschops 683 Practically a Master Poster Featured Poster
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.