Samsung Interview Questions | C/C++/Java/Operating System | Set 2

1. Tell me about about function pointer , how to call a function using function pointer.
2. Which is faster c or c++.
3. what are call back functions.Why they are useful.
4. If polymorphism is possible in C if yes then how.
5. what is Vtable explain and give example. design a class and make virtual table for that.
6. malloc(0)
7. Implementation of sizeof(), string copy, macro defintion, testing no.of bits set in a number, dynamic allocation of double array, structure padding
8. Explain the difference between StringBuffer and StringBuilder. Why would you use each?
9. Explain the difference between Shallow Copy and Deep Copy
10. stack pointer vs frame pointer

Comments