C++ General Interview Questions
Questions Answers Views Company eMail

How should a contructor handle a failure?

673

What is virtual function? Explain with an example

581

Explain the difference between struct and class in terms of access modifier.

689

Define private, protected and public access control.

599

Explain rethrowing exceptions with an example?

599

List down the guideline that should be followed while using friend function.

640

What are static member functions?

609

What is pointer to member?

594

Explain the use of this pointer?

630

What is private inheritance?

590

What are the types of container classes?

606

Difference between a homogeneous and a heterogeneous container

651

Difference between overloaded functions and overridden functions

568

What are the uses of static class data?

626

What are shallow and deep copy?

589


Post New C++ General Questions

Un-Answered Questions { C++ General }

What is the difference between a template and a macro?

577


What are the differences between new and malloc?

623


How does com provide language transparency?

597


Can a list of string be stored within a two dimensional array?

566


Explain the different access specifiers for the class member in c++.

535






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

573


Should you pass exceptions by value or by reference?

687


Is it possible to have a recursive inline function in c++?

540


What is difference between class and structure in c++?

609


What is the use of function pointer?

566


What is an adaptor class or wrapper class in c++?

600


What are 2 ways of exporting a function from a dll?

604


What is virtual table?

607


What is the full form nasa?

592


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

629