C++ Interview Questions
Questions Answers Views Company eMail

Write about c++ storage classes?

960

How the delete operator differs from the delete[]operator?

845

What do you understand by pure virtual function? Write about its use?

764

Explain the concept of dynamic allocation of memory?

830

In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?

821

What do you understand by zombie objects in c++?

827

How the programmer of a class should decide whether to declare member function or a friend function?

871

Using a smart pointer can we iterate through a container?

802

Should the this pointer can be used in the constructor?

762

We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

816

When should I use unitbuf flag?

784

What is the difference between prefix and postfix versions of operator++()?

802

What is the difference between an array and a list?

769

How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

842

When should overload new operator on a global basis or a class basis?

813


Un-Answered Questions { C++ }

What does the ios::ate argument do?

904


what are function pointers?

750


What does obj stand for?

836


how to explain our contribution in the project?

3354


If all is successful, what should main return a) 0 b) 1 c) void

780


Explain how overloading takes place in c++?

765


What is the purpose of template?

817


Is map sorted c++?

725


What is c++ programming language?

821


What is a class in C++?

773


How should runtime errors be handled in c++?

837


Is c++ double?

747


How a new operator differs from the operator new?

870


How can a struct in c++ differs from a struct in c?

797


How do I download c++?

735