| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the difference between Class and Structure? | HP | 2 |
| why can't we declare data member of class auto register or
extern | | 1 |
| How do you link a C++ program to C functions?
| | 2 |
| Which algorithm do you like the most? Why? | Google | 1 |
| What are the techniques you use for debugging? | Adtran | 1 |
| What is a pure virtual function?
Why is it represented as = 0...how is the internal
implementation for the same | CTS | 3 |
| How to change constant values? | Symphony | 3 |
| what is the size of this class
class size
{
public:
char data1;
double d;
int data2;
char data3;
double data4;
short data5;
};
please explain the padding for these double variables. | | 6 |
| how to swap two numbers with out using temp variable | | 6 |
| What are the differences between a struct in C and in C++? | Wipro | 4 |
| Do we have private destructors? | Symphony | 9 |
| what is importance of data sturture in a programming
language? | L&T | 10 |
| What are the types of STL containers? | | 1 |
| What is object slicing and how can we prevent it? | Tech-Mahindra | 2 |
| How can you find the nodes with repetetive data in a linked
list? | Lucent | 1 |
| What are Virtual Functions? How to implement virtual
functions in "C" ? | | 2 |
| How is an Abstract Base Class(ABC) related to an "Abstract
Data Type" (ADT) | | 2 |
| What are the different operators in C++? | HP | 1 |
| is throwing exception from a constructor not a good practice ? | Ericsson | 4 |
| Write a program that read 2o numbers in and array and
output the second largest number. Can anybody help?? | | 2 |
| |
| For more C++ General Interview Questions Click Here |