C/C++ Interview Questions - 2

Saturday, May 17, 2008

  1. What are inline functions?
  2. Talk some timing about profiling?
  3. How many lines of code you have written for a single program?
  4. What is “strstream”?
  5. How to write Multithreaded applications using C++?
  6. Explain "passing by value", "passing by pointer" and "passing by reference"
  7. Write any small program that will compile in "C" but not in "C++"
  8. Have you heard of "mutable" keyword?
  9. What is a "RTTI"?
  10. Is there something that I can do in C and not in C++?
  11. Why pre increment operator is faster than post increment?
  12. What is the difference between "calloc" and "malloc"?
  13. What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?
  14. What is Memory Alignment?
  15. Explain working of printf.
  16. Difference between "printf" and "sprintf".
  17. What is "map" in STL?
  18. When shall I use Multiple Inheritance?
  19. What are the techniques you use for debugging?
  20. How to reduce a final size of executable?
  21. Give 2 examples of a code optimization.


Post a Comment


About This Blog


  © Blogger template The Professional Template II by Ourblogtemplates.com 2009

Back to TOP