| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Disadvantages of c++ | | 3 |
| What is the difference between "overloading" and "overridding"? | | 3 |
|
1. What does the following do:
void afunction(int *x)
{
x=new int;
*x=12;
}
int main()
{
int v=10;
afunction(&v);
cout<<v;
}
a) Outputs 12
b) Outputs 10
c) Outputs the address of v
| Quark | 3 |
| How do you know that your class needs a virtual destructor? | Lucent | 3 |
| Definition of class?
| | 10 |
| What is "strstream" ? | Huawei | 1 |
| Write any small program that will compile in "C" but not
in "C++" | Honeywell | 6 |
| Which uses less memory?
a)
struct astruct
{
int x;
float y;
int v;
};
b)
union aunion
{
int x;
float v;
};
c)
char array[10];
| Quark | 3 |
| What is the Maximum Size that an Array can hold? | Satyam | 31 |
| How many lines of code you have written for a single program? | BoA | 1 |
| if i want cin 12345678910 and cout abcdefghij.
so how can i create the program?.
example : if i key in 8910 so the answer is ghij. | | 3 |
| What is Pure Virtual Function? Why and when it is used ? | Lucent | 4 |
| Can we declare destructor as static? Explain? | | 2 |
| What is Namespace? | Samsung | 1 |
| What is your strongest programming language (Java, ASP, C,
C++, VB, HTML,C#, etc.)? | Microsoft | 20 |
| Why is it difficult to store linked list in an array? | Lucent | 2 |
| What are the different types of Storage classes? | | 3 |
| Write a program to reverse a linked list? | Catalytic-Software | 2 |
| What issue do auto_ptr objects address? | | 1 |
| what is meaning of isa and hsa | | 1 |
| |
| For more C++ General Interview Questions Click Here |