8. Explain the concepts of pointers, referencing, and dereferencing with examples.
9. Show how arrays are allocated and deallocated dynamically in C, C++, and Java with
examples.
10. Explain memory leak in C/C++ and garbage collection in Java with examples.