C++ Interview Questions
Questions Answers Views Company eMail

Write about c++ storage classes?

740

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

633

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

573

Explain the concept of dynamic allocation of memory?

612

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

579

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

602

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

675

Using a smart pointer can we iterate through a container?

552

Should the this pointer can be used in the constructor?

547

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?

572

When should I use unitbuf flag?

577

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

587

What is the difference between an array and a list?

579

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

635

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

605


Un-Answered Questions { C++ }

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

313


How did c++ start?

603


Can user-defined object be declared as static data member of another class?

544


Why is polymorphism used?

575


What is the iunknown interface?

672






How does a copy constructor differs from an overloaded assignment operator?

549


Explain the register storage classes in c++.

661


Write a program to sort the number with different sorts in one program ??

1908


What is data binding in c++?

499


What is solid in oops?

592


What are the differences between new and malloc?

623


What is polymorphism and its types?

585


Is it possible to write a c++ template to check for a function's existence?

568


Explain the problem with overriding functions

596


Const char *p , char const *p What is the difference between the above two?

650