| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| structure contains int, char, float how it behaves for big
endian and little endian? | BITS | 1 |
| Write the program for fibonacci in c++? | | 3 |
| What are the different types of polymorphism? | | 2 |
| 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 | 1 |
| What about Virtual Destructor?
| Virtusa | 1 |
| Can you explain the term "resource acquisition is
initialization?" | | 1 |
| Is there something that we can do in C and not in C++? | Patni | 6 |
| What is a constructor initializer list and when we use
constructor initializer list?
| TCS | 2 |
| what is difference between static and non-static variables | | 4 |
| How to implement flags? | Symphony | 1 |
| What are the total number of lines written by you in C/C++?
What is the most complicated or valuable program written in
C/C++?
| Intel | 1 |
| What is Name Decoration? | Lucent | 2 |
| "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 the prime no program in c++? | | 4 |
| what is pulse code modulation?
| Wipro | 1 |
| tell me about yourself ?i want answer for frehers with
various exasmples? | HCL | 2 |
| what is meaning of isa and hsa | | 1 |
| What is the difference between method and message? | HP | 2 |
| Disadvantages of c++ | | 3 |
| What is the difference between Class and Structure? | HP | 2 |
| |
| For more C++ General Interview Questions Click Here |