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.
5 6614Post New GE C++ General Interview Questions
Enlist the declarative transaction types?
What is a list in data structure?
What are your long term career goals?
How does mongodb sharding work?
How does the HTTP handle state?
Explain what is the pdu of "network layer" and "data link layer"?
What are the core functionalities of the sap system?
How can I create a database in mysql?
WHAT IS THE LIMIT ABOVE WHICH WE CAN DEDUCT THE TDS ON VARIOUS CATEGORY LIKE PRIFESSION, CONTRACTOR, INTEREST, RENT, SALARY ETC.
What are keywords in the vbscript language?
How to use laravel framework in php?
How do you insert a word document into another word document with formatting?
What are the tools used in organic search engine optimization?
When to use explode in Hive?
What is grep|sort give example?