1. What is the output of printf("%d")
2. What will happen if I say delete this
3. Difference between "C structure" and "C++ structure".
4. Difference between a "assignment operator" and a "copy constructor"
5. What is the difference between "overloading" and "overriding"?
6. Explain the need for "Virtual Destructor".
7. Can we have "Virtual Constructors"?
8. What are the different types of polymorphism?
9. What are Virtual Functions? How to implement virtual functions in "C"
10. What are the different types of Storage classes?
11. What is Namespace?
12. What are the types of STL containers?
13. Difference between "vector" and "array"?
14. How to write a program such that it will delete itself after execution?
15. Can we generate a C++ source code from the binary file?


C/C++ Interview Questions - 2


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.


This entry was posted on 6:44 AM and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 comments: