Array base access faster or pointer base access is faster?
What is time_t c++?
How do you initialize a class member, class x { const int i; };
What is name hiding in c++?
Write a code/algo to find the frequency of each element in an array?
Which is most difficult programming language?
What are virtual functions in c++?
What are the uses of pointers?
Implement strcmp
What is fflush c++?
What is DlgProc?
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 setw manipulator in c++?