C Interview Questions - 8

Tuesday, March 18, 2008

  • What is the output of printf("%d")
  • What will happen if I say delete this
  • What is Dangling pointer?
  • Difference between "C structure" and "C++ structure".
  • Diffrence between a "assignment operator" and a "copy constructor"
  • What is the difference between "overloading" and "overridding"?
  • Explain the need for "Virtual Destructor".
  • Can we have "Virtual Constructors"?
  • What are the different types of polymorphism?
  • What are Virtual Functions? How to implement virtual functions in "C"
  • What are the different types of Storage classes?
  • What is Namespace?
  • What are the types of STL containers?.
  • Is there any difference between a messageand method?
  • If I ask you to write 'VI' editor in C++ - How you'll proceed?
  • Difference between char name[] = “mindgrill q”; and char *name = “mindgrill q”;
  • Should we use global variables?
  • Parsing HTML or XML document with C++
  • What is 'self assignment'?
  • Difference between how virtual and non-virtual member functions are called
  • Finding shortest path aka Dijkstra's algorithm and backtracking
  • Doing permutations and combinations in C++
  • Difference between "vector" and "array"?
  • How to write a program such that it will delete itself after exectution?
  • Can we generate a C++ source code from the binary file?
  • What are inline functions?
  • Talk sometiming 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 preincrement operator is faster than postincrement?
  • 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.

1 comments:

Pilot-Pooja December 27, 2008 at 3:22 AM  

Excellent work done for the benefit of others!

Post a Comment

Chitika

About This Blog

Followers

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

Back to TOP