C++ Interview Questions
Questions Answers Views Company eMail

Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?

1 561

What is virtual destructors? Why they are used?

1 536

What you mean by early binding and late binding? How it is related to dynamic binding?

1 565

What is meant by reference variable in C++?

1 563

How to create a reference variable in C++

1 575

What are the difference between reference variables and pointers in C++?

1 554

What will the line of code below print out and why?

336

What is the error in the code below and how should it be corrected?

313

What will i and j equal after the code below is executed? Explain your answer.

1 568

What are the different data types present in C++?

1 758

What are class and object in C++?

1 664

Compare compile time polymorphism and Runtime polymorphism

1 523

What do you know about friend class and friend function?

1 559

Define inline function

1 576

What is a reference in C++?

1 654


Un-Answered Questions { C++ }

What does catch(…) mean?

625


What are the benefits of polymorphism?

631


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

641


what is a pragma in C++?

647


What are constructors in oop?

605






What is the difference between realloc() and free() in C++?

519


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

554


What is c++ array?

562


What are friend functions in C++?

633


What is the difference between new() and malloc()?

627


Discuss about iteration statements in C++ .

558


What is a character in c++?

575


What is #include cstdlib in c++?

672


Do you know the use of vtable?

652


Explain linked list using c++ with an example?

643