C++ In Random Order (Pointers Part 1)

Channel:
Subscribers:
771
Published on ● Video Link: https://www.youtube.com/watch?v=UdMQOTPzChA



Duration: 4:46
56 views
3


I illustrate the basics of pointers in C++.

Forgetting to free when using dynamic allocation causes problems when memory is exhausted because too much is allocated and not enough freed. Memory runs out. It's not just because we 'forgot to free.' That part was not clear. Always free memory when it is no longer needed when using dynamic allocation.

These are bite sized tutorials which I will put in a playlist. It is not meant as a complete C++ tutorial, more of a casual reference.