C interview questions – page 9

2,130 questions. Tap “Show answer” to check yourself.

Advertisement
  1. What is the difference between public, private, protected inheritance?

  2. What is Virtual Inheritance?

  3. What is the difference between operator new and the new operator?

  4. What happens if an exception is throws from an, object's constructor and object's destructor?

  5. What is a constructor initializer list and when we use constructor initializer list?

  6. What is conversion constructor?

  7. Difference between delete and delete[]?

  8. What is Name Decoration?

  9. Explain the difference between 'operator new' and the 'new' operator?

  10. What happens if an exception is throws from an object's constructor and from object's destructor?

  11. what is the order of initialization for data?

  12. Shall we use 'free' to free memory assigned by new, What are the further consequences??

  13. Advertisement
  14. What are the advantages and disadvantages of using inline and const?

  15. Profiler in projects?

  16. What are raw sockets, where they are efficient?

  17. How to construct muliton object

  18. How to construct virtual constructor

  19. When the design recommends static functions?

  20. Difference between shift left and shift right?

  21. Do we have private destructors?

  22. How to avoid a class from instantiation?

  23. What are the basics of classifying different storage types, why?

  24. Difference between static global and global?

  25. How to implement flags?

  26. Advertisement
  27. When volatile can be used?

  28. How to stop conversions among objects?

  29. How to change constant values?

  30. How to avoid changing constant values?

  31. When copy constructor can be used?

  32. What is the use of static functions?

Advertisement