Common C++ Interview Questions
1. What is a structure?
2. Difference between structure and class?
3. Can a constructor be private?
4. Difference between HashMap and HashSet?
5. What is LinkedList?
6. Name few common data structures?
7. What is virtual function?
8. What is malloc()?
9. What is realloc()?
10. What is calloc()?
11. What is free()?
12. How memory allocation works in C++?
13. Differentiate between realloc() and free()?
14. What is difference between malloc() and alloc()?
15. Can you call "delete this;" inside a member function?
16. What is memory leak?
17. What is Dangling Pointer?
18. Why virual function cannot be used with template in C++?
19. Why virtual member function can not be used with template in C++.
20. What are copy constructors? When are they called?
21. How would you find out if a linked-list is a cycle or not?
22. What is reference variable?
23. What is the differenc between virtual class and friend class?
24. What are pointers. How can they be used for?
25. What is difference between Heap memory and Stack memory?
26. What is difference between array and list?
27. What is a Constructor?
28. What is difference between new() and malloc()?
29. What is copy constructor?
29. What is a mutable member?
30. What is RTTI?
31. What is mutable?
32. What is a modifier?
33. What is an iterator class?
34. How do you know Linked list has an end or in cycle?
35. what is Constructor, Default Constructor and Copy Constructor?
36. What is inline function?
38. What is the difference between Array and List?
39. what is a node class?
40. What is a Container class?