Hai friends,
Me too have some doubts regarding C++.
What happens if a pointer is deleted twice?
Which is a better option --pass by value or pass by reference ?
anusri555 0 Newbie Poster
Recommended Answers
Jump to Post>>What happens if a pointer is deleted twice
Depends. If you set the value of the pointer to 0 after the first delete then nothing will happen. But if you don't then the program will probably crash.>>value or pass by reference
Nothing -- almost. They both have the …
All 3 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
mukul227 -1 Newbie Poster
jonsca commented: Don't bump old threads -1
NathanOliver 429 Veteran Poster 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.