Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
Explain explicit container.
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
Is it possible to use a new for the reallocation of pointers ?
What is a far pointer? where we use it?
There is a magic square matrix in such a way that sum of a column or a row are same like 3 5 2 4 3 3 3 2 5 sum of each column and row is 10. you have to check that matrix is magic matrix or not?
How a new operator differs from the operator new?
Why the usage of pointers in C++ is not recommended ?
Using a smart pointer can we iterate through a container?
What is the need of a destructor? Explain with the help of an example.
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.
Can a constructor throw a exception? How to handle the error when the constructor fails?
Explain the concept of friend function in c++?