what happens if we delete a pointer twice..??
DJSAN10 28
Posting Whiz in Training
Recommended Answers
Jump to PostThe results are undefined, which means that a program that does so is permitted to do anything at all.
Jump to PostTo give a more useful answer, that is, knowing what typically could happen when you delete a pointer twice might help you recognize the situation if you see those symptoms.
So, although it is undefined behaviour, as arkoenig mentioned, there are a number of things that would typically happen …
All 5 Replies
arkoenig 340
Practically a Master Poster
mrnutty 761
Senior Poster
arkoenig 340
Practically a Master Poster
mike_2000_17 2,669
21st Century Viking Team Colleague Featured Poster
DJSAN10 28
Posting Whiz in Training
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.