Career Center
Interview Questions
C++ Interview Questions
1 Name some template classes in STL
2 Can you access a dervied method using a base class object / pointer?
3 What are the differences between a struct and a class?
4 How are virtual functions implemented?
5 How do you link C functions from a C++ program?
6 In how many different ways can you instantiate an integer?
7 Can you delete an objected created using malloc and vice versa?
8 Can a non member access a private class member? What does
friend specifier do?
9 Whats the other name for macro?
10 How can you enforce dynamic binding of your functions?
11 Is there a way where a const function can modify a member value?
12 What does the explicity keyword specify?
13 Can you have a virtual constructor? Can you have a default
destructor? If so, when would you use it?
14 Are the "default constructor" and the "constructor with a
default parameter" same?
15 What are virtual dervied classes?
16 What are the access privileges of base class memebers in the
derived class?
17 Can you return i++?
18 When is a function thread safe in C/C++?
19 What are the differences between new and malloc?
20 What is placement new? Why would you use it?
21 When will you get a stack overflow? Will it dump core? Can you catch it?
22 Why do you need virtual base classes?
23 Can you do delete this? Can you throw exceptions from destructor?