C++ Interview Questions
Questions Answers Views Company eMail

when can we use virtual destructor?

HCL, HP, Virage Logic,

7 24411

What is the difference between Class and Structure?

HP, IBM, Samsung, TCS,

40 217388

What is size of null class?

HP,

6 15677

Is structure can be inherited?

HP, ST Micro,

5 15771

How the V-Table mechanism works?

HP,

6 21291

What is the STL?

Epson, HP,

2 8219

what is a template?

Amazon, BITS, IBS, Wipro,

2 7584

what is an algorithm in terms of STL?

Lucent, Wipro,

1 7492

What is the difference between public, private, protected inheritance?

Wipro,

12 58056

What is Virtual Inheritance?

Amazon, Wipro,

7 14678

What is the difference between operator new and the new operator?

Amazon, TCS, Wipro,

3 11335

What happens if an exception is throws from an, object's constructor and object's destructor?

Wipro,

4 15521

What is the difference between Pointer and a Reference? When you would use them?

Wipro,

4 11700

What are the differences between a struct in C and in C++?

Amazon, Wipro,

8 15896

What are the differences between a struct and a class in C++?

Amazon, Wipro,

7 11387


Un-Answered Questions { C++ }

What does it mean to declare a destructor as static?

621


Why do while loop is used?

571


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

608


What are arithmetic operators?

535


what is graphics

2009






How can I learn c++ easily?

618


Get me a number puzzle game-program

1691


Explain the differences between private, public and protected and give examples.

564


What would happen on forgetting [], while deallocating an array through new?

631


What do the header files usually contains?

623


Does c++ have foreach?

523


What is difference between polymorphism and inheritance?

617


What do you mean by translation unit?

597


Write about the local class and mention its use?

605


Write is a binary search tree? Write an algo and tell complexity?

587