Explain dangling pointer.
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like. [ I ended up giving about 4 or 5 different solutions for this, each supposedly better than the others ].
Can you use the function fprintf() to display the output on the screen?
List down the guideline that should be followed while using friend function.
How the virtual functions maintain the call up?
What are friend classes? What are advantages of using friend classes?
When should I use unitbuf flag?
What is malloc in c++?
What is the insertion operator and what does it do?
Explain deep copy?
What is the difference between a reference and a pointer?
What is :: operator in c++?
What is an adjust field format flag?