Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Need to know why destructor is calling 04 times?
zakaria
11y
1.1k
1
Reply
There was a problem in our last class.(http://ideone.com/oaNbfd . i could solve it. but the problem was with the output. Here constructor should call 02 times and the destructor should call 02 times. but destructor was calling 04 times .Now ques is why it is 04 times???output was like that:
constructing1
constructing2
destructing1
destructing1
destructing1
destructing1
input file link :
http://ideone.com/oaNbfd
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
fast multi-pattern string matching algorithm
what is the error with the code??