C++ Interview Questions
Questions Answers Views Company eMail

When must you use a constructor initializer list?

Amazon,

554

What is a constructor initializer list?

Amazon,

605

What is partial specialization or template specialization?

Amazon,

546

What does it mean to take the address of a reference?

Amazon,

509

What are the costs and benefits of using exceptions?

Amazon,

532

What is name mangling/name decoration?

Amazon,

495

What is wrong with this statement? std::auto_ptr ptr(new char[10]);

Amazon,

520

What is an algorithm (in terms of the STL/C++ standard library)?

Amazon,

599

Explain what happens when an exception is thrown in C++.

Amazon,

528

It is possible to build a C++ compiler on top of a C compiler. How would you do this?

Amazon,

533

When would you choose to return an error code rather than throw an exception?

Amazon,

525

What kind of problems does name mangling cause?

Amazon,

577

How do you work around them?

Amazon,

572

What are the advantages/disadvantages of using inline and const?

Amazon,

545

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

Amazon,

525


Un-Answered Questions { C++ }

Why do we use inheritance?

622


What are two types of polymorphism?

600


Explain deep copy and a shallow copy?

594


What is #include cstdlib in c++?

646


What are special characters c++?

550






What is the precedence when there is a global variable and a local variable in the program with the same name?

610


Is java based off c++?

521


What is a pdb file?

527


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

1999


What is overloading in oop?

564


What is rtti in c++?

616


What is interface in oop?

645


What is data structure in c++?

641


What is the full form of stl in c++?

660


what are the realtime excercises in C++?

2325