How can you differentiate between inheritance and implementation in c++?
Will rust take over c++?
What is the use of namespace std in C++?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What is the difference between prefix and postfix versions of operator++()?
What is size of a empty class?
7 Answers Microsoft, Tata Elxsi, Wipro,
What is overloading unary operator?
1.what is the difference between software & package &application.
How is new() different from malloc()?
What is public, protected, private in c++?
What is scope operator in c++?
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.
What is the use of function pointer?