| Other C++ General Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Write the program for fibonacci in c++? | | 3 |
| What is a pure virtual function?
Why is it represented as = 0...how is the internal
implementation for the same | CTS | 3 |
| Difference between Overloading and Overriding? | HP | 4 |
| What is the difference between = and == in C? | Intel | 8 |
| What is the difference between a copy constructor and an
overloaded assignment operator? | Microsoft | 3 |
| What is the Difference between "C structure" and "C++
structure"? | | 4 |
| What does '\r' and '\b' mean? Please explain with example.
| | 2 |
| What is Object Oriented programming.what is the difference
between C++ and C? | Infosys | 5 |
| what is static function | Patni | 2 |
| How do I open binary files? | | 1 |
| Find the second maximum in an array?
| HCL | 2 |
| Difference between static global and global? | Symphony | 8 |
| What C++ libraries are you proficient with? | Google | 1 |
| Can inline functions have a recursion? Give the reason? | | 1 |
| In a class, there is a reference or pointer of an object of
another class embedded, and the memory is either allocated
or assigned to the new object created for this class. In
the constructor, parameters are passed to initialize the
data members and the embedded object reference to get
inialized. What measures or design change should be advised
for proper destruction and avioding memory leaks, getting
pointers dangling for the embedded object memory
allocation? Please suggest. | GE | 3 |
| Write any small program that will compile in "C" but not in
"C++"? | | 3 |
| Why would you make a destructor virtual? | Lehman-Brothers | 3 |
| Implement strncpy | | 2 |
| Describe functional overloading? | HP | 3 |
| Which of the Standard C++ casts can be used to perform a
?safe? downcast:
a) reinterpret_cast
b) dynamic_cast
c) static_cast
d) const_cast
| Quark | 1 |
| |
| For more C++ General Interview Questions Click Here |