Un-Answered Questions { C++ }

Factory Method C++ – How to delete pointers returned by it

357


What are issues if we mix new and free in C++?

303


How does free know the size of memory to be deleted

308


What's the value of the expression 5["abxdef"]?

1044


How to delete array of objects in C++? Proof by C++ code for proper deletion

335


How to stop class inheritance in C++ with condition that object creation should be allowed

296


What is Advantage and Use of THIS pointer in C++ – Scenarios?

306


C++ Public access specifier instead of Private – What is bad ?

410


Is there a difference between class and struct?

492


How many times will this loop execute? Explain your answer.

381


How can a C function be called in a C++ program?

328


C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

394


What is the difference between global int and static int declaration?

416


Specify different types of decision control statements?

360


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

340