| Other C++ General Interview Questions |
| |
| Question |
Asked @ |
Answers |
| |
| what is the order of initialization for data? |
TCS | 10 |
| What is size of null class? |
HP | 5 |
| Can we use resume in error handling i.e. in the catch block |
Infosys | 5 |
| Write a C++ program that asks the user to choose a number
between 1 and 1000. Then,
your program should be able to guess the number by asking
the user no more than 10 yes/no
questions. Use a while loop in your program |
| 1 |
| What are templates? where we should use it? |
Alcatel | 2 |
| What are Binay tress and B trees? Diff between them? |
CTS | 8 |
| What is the difference between static global and global ? |
CA | 2 |
| In which memory a class gets stored(in heap /in stack)?
And why?? |
| 2 |
| given the code segment below
void main()
{
cout<<"my no. is";
}
question is how can we get the output hai aravind my no. is
99999999999 without editig the main(). |
| 2 |
| What are the popular tools used to detect memory leaks in
c++ |
Tata | 4 |
| 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. |
| 9 |
| how to find the maximum of 10 numbers ? |
| 5 |
| |
| For more C++ General Interview Questions Click Here |