C++ Interview Questions
Questions Answers Views Company eMail

Write a struct time where integer m, h, s are its members?

513

Define a pointer to a data member of the type pointer to pointer?

570

Is it possible for a member function to use delete this?

562

Is there any function that can skip certain number of characters present in the input stream?

583

In the derived class, which data member of the base class are visible?

638

What is an iterator class in c++?

594

What is a modifier in c++?

629

What is pure virtual function?

621

Write about the access privileges in c++ and also mention about its default access level?

615

Is it possible to provide default values while overloading a binary operator?

761

Refer to a name of class or function that is defined within a namespace?

601

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

609

Explain the differences between private, public and protected and give examples.

564

What is the limitation of cin while taking input for character array?

1451

What are shallow and deep copies?

629


Un-Answered Questions { C++ }

What is difference between polymorphism and inheritance?

617


List the advantages of inheritance.

640


What is #include sstream?

622


Define the process of handling in case of destructor failure?

575


Who was the creator of c++?

556






What is DlgProc?

596


What is byval and byref? What are differences between them?

1687


Will a catch statement catch a derived exception if it is looking for the base class?

556


Why can templates only be implemented in the header file?

656


Which compiler does turbo c++ use?

601


Do you know what are pure virtual functions?

638


What are the various access specifiers in c++?

598


What is the important feature of inheritance?

631


Write a program to find the reverse Fibonacci series starting from N.

602


Write about the use of the virtual destructor?

604