| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is pulse code modulation?
| Wipro | 1 |
| Explain about profiling? | | 1 |
| What are advantages of C++ when comparing with C? | HP | 3 |
| When volatile can be used? | Symphony | 2 |
| what is data Abstraction? and give example | TCS | 13 |
| In C++ cout is:
a) object
b) class
c) something else | Lehman-Brothers | 10 |
| Write a program to reverse a linked list? | Catalytic-Software | 2 |
| Why preincrement operator is faster than postincrement? | | 3 |
| How many pointers are required to reverse a link list? | CTS | 2 |
| When the design recommends static functions? | Symphony | 1 |
| What is Namespace? | Samsung | 1 |
| What is size of null class? | HP | 3 |
| What will happen if I allocate memory using "new" and free
it using "free" or allocate sing "calloc" and free it using
"delete"? | | 2 |
| What issue do auto_ptr objects address? | | 1 |
| "How will you merge these two arrays? Write the program
Array: A 1 18 22 43
Array: B 3 4 6 20 34 46 55
Output Array: C 1 3 4 6 18 20 22 34 43 46 55"
| HCL | 5 |
| Write any small program that will compile in "C" but not in
"C++"? | | 3 |
| Write a program to swap 2 chars without using a third
varable?
char *s = "A";
char *p = "B"; | CTS | 3 |
| Difference between Operator overloading and Functional
overloading? | HP | 4 |
| What is Virtual Inheritance? | Wipro | 2 |
| 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 |
| |
| For more C++ General Interview Questions Click Here |