| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| when can we use copy constructor? | HP | 4 |
| What are the different operators in C++? | HP | 2 |
| When copy constructor can be used? | Symphony | 4 |
| What will happen if I allocate memory using "new" and free
it using "free" or allocate sing "calloc" and free it using
"delete"? | | 2 |
| Please post the model question paper of hal? | | 2 |
| What is size of null class? | HP | 4 |
| What is the difference between a copy constructor and an
overloaded assignment operator? | Microsoft | 3 |
| What C++ libraries are you proficient with? | Google | 1 |
| What is the size of pointer ?
Also size of pointer in 64 bit pointer | | 1 |
| What does '\r' and '\b' mean? Please explain with example.
| | 4 |
| What is design pattern? | Samsung | 2 |
| How to construct muliton object | Symphony | 1 |
| Write any small program that will compile in "C" but not
in "C++" | Honeywell | 9 |
| Find the second maximum in an array?
| HCL | 6 |
| How const functions will be treated by compiler? | Symphony | 1 |
| 1.what is the difference between software & package
&application.
| | 1 |
| class X
{
public:
int x;
static void f(int z);
};
void X::f(int y) {x=y;}
What is the error in the sample code above?
a) The class X does not have any protected members.
b) The static member function f() accesses the non-static z.
c) The static member function f() accesses the non-static x.
d) The member function f() must return a value.
e) The class X does not have any private members.
| Quark | 2 |
| Types of storage and scope of each type | CA | 1 |
| What are the techniques you use for debugging? | Adtran | 1 |
| What are inline functions? | Verizon | 2 |
| |
| For more C++ General Interview Questions Click Here |