C++ Interview Questions
Questions Answers Views Company eMail

If I is an integer variable, which is faster ++i or i++?

824

Explain the concept of friend function in c++?

846

Can non-public members of another instance of the class be retrieved by the method of the same class?

845

How the virtual functions maintain the call up?

867

Differentiate between an inspector and a mutator ?

936

Write about the members that a derived class can add?

785

Describe public access specifiers?

828

What kind of problems can be solved by a namespace?

832

What are put and get pointers?

857

Write about the local class and mention its use?

847

What is a c++ object?

886

Define the process of handling in case of destructor failure?

832

Write about the scope resolution operator?

805

Can the creation of operator** is allowed to perform the to-the-power-of operations?

793

Write about the role of c++ in the tradeoff of safety vs. Usability?

826


Un-Answered Questions { C++ }

How do you add an element to a set in c++?

775


How does free know the size of memory to be deleted

518


What are member functions used in c++?

816


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3133


What are move semantics?

897


Should I learn c or c++ first?

890


What are the defining traits of an object-oriented language?

966


What do the header files usually contains?

835


In what situations do you have to use initialization list rather than assignment in constructors?

868


Give two or more real cenario of virtual function and vertual object

2094


write a C++ program for booking using constructor and destructor.

2295


What is double in c++?

840


Is c++ an integer?

809


What is copy constructor? Can we make copy constructor private in c++?

836


Explain the difference between using macro and inline functions?

846