C++ Questions and Answers




  1. Does size of integer dependant on compiler / architecture / OS ?
  2. What is the size of Wide Char(wchar_t) ?
  3. How Std::String class is implemented?
  4.  How to use wide strings ? 
  5. What is the scope of compiler optimization for volatile?
  6. Is it valid statement    std::cout<<(5<<2))<<endl? comment on it.
  7. What is pragma? what are the advantages of it?
  8. Differentiate typedef and #define for arr[10]?
  9. How is memory allocation is done for member functions and member variables of class?
  10. what is reinterpret cast?
  11. what is function hiding in classes  and memory stack for function in the derived class?
  12. comment on method of calling for base class and derived class.
  13. state the practical applications of virtual functions and memory synchronization.
  14. What is the maximum limit of Multiple inheritance and Multi level inheritance?
  15. Why constructor doesn't have return type?
  16. What is the maximum limit of arguments can take a function except printf ?
  17. Comments on" Cpp is bottom to top approach".
  18. Comments on "Why Cpp is not pure objective oriented language"