C++ Interview Questions
Questions Answers Views Company eMail

How does free know the size of memory to be deleted

304

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

1031

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

324

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

294

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

302

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

406

Is there a difference between class and struct?

483

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

374

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

320

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

384

What is a built-in function?

1 572

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

403

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

1 801

Specify different types of decision control statements?

352

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

331


Un-Answered Questions { C++ }

What is advantage of inheritance?

687


Which is better c++ or java?

562


What is the difference between the functions rand(), random(), srand() and randomize()?

727


What is switch case in c++ syntax?

622


Can I make ios apps with c++?

555






How do I use arrays in c++?

584


Get me a number puzzle game-program

1694


What is the difference between inheritance and polymorphism?

585


What is an advantage of polymorphism?

589


Where Malloc(), Calloc(), and realloc() does get memory?

607


What are keywords in c++?

598


What are the advantages of c++ over c?

580


What is this weird colon-member (" : ") syntax in the constructor?

541


What are structs in c++?

601


What do you mean by inheritance in c++?

601