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 867

What is virtual destructors? Why they are used?

1 836

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

1 868

What is meant by reference variable in C++?

1 829

How to create a reference variable in C++

1 862

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

1 836

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

511

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

516

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

1 881

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

4 1478

What are class and object in C++?

1 931

Compare compile time polymorphism and Runtime polymorphism

1 806

What do you know about friend class and friend function?

1 813

Define inline function

1 845

What is a reference in C++?

1 912


Un-Answered Questions { C++ }

write knight tour problem which is present in datastructure

2354


What does no cap mean?

772


Explain the virtual inheritance in c++.

796


When do you call copy constructors?

858


Is python written in c or c++?

848


What is the difference between a definition and a declaration?

798


Are strings immutable in c++?

878


How do you establish an is-a relationship?

822


What is the difference between delegation and implemented-in-terms-of?

763


Define stacks. Provide an example where they are useful.

765


How to get the current position of the file pointer?

771


What is the maximum combined length of command line arguments including the space between adjacent arguments?

765


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

773


how to explain our contribution in the project?

3346


Is c++ built on c?

754