Wednesday, June 2, 2010

C++ Questions

  1. T *p =0; delete p;
  2. T *p =new T[10]; delete p;
  3. drawbacks of inheritance
  4. typedef and #define
  5. how to determine a little endian and big endian system
  6. structure padding
  7. function declaration of printf ( variable arrgs)
  8. static / extern
  9. find the nth node from last in a singly linked list
  10. delete current node in the list
  11. reverse a singly linked list
  12. check if list contains a loop
  13. operators that cannot be overloaded
  14. delete this
  15. virtual destructors /constructors
  16. implementation of virtual fns
  17. RTTI
  18. STL containers
  19. strstream
  20. stack unwinding
  21. one use of union
  22. *p+1 , *p++
  23. memory leak tools
  24. segmentation violation
  25. storage class specifications
  26. eg of function pointers, their uses
  27. bit fields
  28. declare an int pointer that points to an array of type int
  29. Are Null and 0 same?
  30. a= a+0; a= a+NULL;
  31. diff between memmove and memcpy
  32. garbage collection in c++
  33. dangling pointers
  34. priority queue
  35. static functions
  36. How to handle failures in constructor
  37. what happens when exception is thrown in c++
  38. exceptions in destructors
  39. explict constructors
  40. mutable keyword
  41. where initialisation list is used as opposed to assignment in constructor(non static const data members and reference data members)

No comments: