Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



C++ Interview Questions
Questions Answers Views Company eMail

What is Copy Constructor?

ABC, Siemens,

5 33263

What is an abstract class?

Siemens,

6 13565

What is the difference between creating an object, using 'new' and using 'malloc'?

HFG, Siemens,

3 13821

What is a virtual base class?

Fidelity, Siemens,

6 25904

What is OOPS and How it is different from Procedural Programming ?

HP, Infosys, Thyrocare,

23 75726

Difference between Top down and bottom up approaches for a given project ?

BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,

14 112440

What and all can a compiler provides by default?

Accenture, HP,

3 16782

What are the different operators in C++?

HP,

3 14723

What is the difference between method and message?

HP,

5 58937

What is difference between initialization and assignment?

HCL, HP, Infosys,

12 67037

when can we use copy constructor?

HP,

6 17877

Describe functional overloading?

HP,

6 13267

Difference between Overloading and Overriding?

Appnetix Techno, GameLoft, HP, IBM, NIIT, Rohde and Schwarz,

35 207021

Difference between Operator overloading and Functional overloading?

HP,

10 54886

What is virtual constructor paradigm?

HCL, HP,

5 16946


Un-Answered Questions { C++ }

Why is standard template library used?

1048


Is it possible to use a new for the reallocation of pointers ?

1047


What is data type in c++?

1010


Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

2125


What is stl in oop?

1210


what is scupper?

2390


Describe linkages and types of linkages?

993


What are friend classes? What are advantages of using friend classes?

1104


What are the steps in the development cycle?

1097


Tell me can a pure virtual function have an implementation?

1023


Why multiple inheritance is not possible?

1067


How is class defined?

1130


Is c++ the hardest language?

983


Where must the declaration of a friend function appear?

959


Explain the FOR loop with a help of a code.

988