I just started out on the subject of freeing memory in the free store in my book and I was wondering how that is actually used most often.
All I can think of is that it is used as a replacement for variables so you can delete them once used to keep the memory usage of your program lower.
Am I right on this or is it more used for more advanced features that I will probably learn later on?