C/C++ Interview Questions - 2
Saturday, May 17, 2008
- What are inline functions?
- Talk some timing about profiling?
- How many lines of code you have written for a single program?
- What is “strstream”?
- How to write Multithreaded applications using C++?
- Explain "passing by value", "passing by pointer" and "passing by reference"
- Write any small program that will compile in "C" but not in "C++"
- Have you heard of "mutable" keyword?
- What is a "RTTI"?
- Is there something that I can do in C and not in C++?
- Why pre increment operator is faster than post increment?
- What is the difference between "calloc" and "malloc"?
- What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?
- What is Memory Alignment?
- Explain working of printf.
- Difference between "printf" and "sprintf".
- What is "map" in STL?
- When shall I use Multiple Inheritance?
- What are the techniques you use for debugging?
- How to reduce a final size of executable?
- Give 2 examples of a code optimization.
0 comments:
Post a Comment