is throwing exception from a constructor not a good practice ?
Answer Posted / saranya
yes, because constructor does not throws an exception
Is This Answer Correct ? | 1 Yes | 8 No |
Post New Answer View All Answers
What is a driver program?
Write about the access privileges in c++ and also mention about its default access level?
What are friend functions in C++?
You run a shell on unix system. How would you tell which shell are you running?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What is flag in computer?
Name the debugging methods that are used to solve problems?
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is the difference between a type-specific template friend class and a general template friend class?
What is the benefit of encapsulation?
Why is c++ awesome?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What does it mean to declare a destructor as static? Write about the retrieval of n number of objects during the process of delete[]p? How do you traverse a btree in backward in-order?