On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
No Answer is Posted For this Question
Be the First to Post Answer
What is the use of map in c++?
Explain the difference between overloading and overriding?
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
What is data hiding c++?
Which sort does c++ use?
How do we implement inheritance in c++?
What is difference between initialization and assignment?
12 Answers HCL, HP, Infosys,
class base { public: int fun(int) {} }; class base2 { public: int fun(float) { } }; so here qustion is both function either function overloading or over riding;
What are virtual functions and what is its use?
What is protected inheritance?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";