C++ Interview Questions
Questions Answers Views Company eMail

How does free know the size of memory to be deleted

516

What's the value of the expression 5["abxdef"]?

1296

How to delete array of objects in C++? Proof by C++ code for proper deletion

575

How to stop class inheritance in C++ with condition that object creation should be allowed

503

What is Advantage and Use of THIS pointer in C++ – Scenarios?

505

C++ Public access specifier instead of Private – What is bad ?

609

Is there a difference between class and struct?

741

How many times will this loop execute? Explain your answer.

641

How can a C function be called in a C++ program?

511

C++ supports multiple inheritance. What is the “diamond problem” that can occur with multiple inheritance? Give an example.

609

What is a built-in function?

1 923

What is the difference between global int and static int declaration?

654

Difference between const char* p and char const* p?

1 1179

Specify different types of decision control statements?

616

Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

583


Un-Answered Questions { C++ }

What is the difference between struct and class?

1084


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

1202


What is capacity in vector in c++?

773


What size is allocated to the union variable?

824


Explain the difference between overloading and overriding?

883


Ask to write virtual base class code?

2494


What is function declaration in c++ with example?

757


What is c++ virtual inheritance?

850


Is enum a class?

814


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

765


Can create new c++ operators?

780


what are Access specifiers in C++ class? What are the types?

877


What are arithmetic operators?

776


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3690


What is the difference between multiple and multilevel inheritance in c++?

909