So now in the book 'Learning C on the Mac' He is covering that I need to allocate a block of memory that I am responsible allocating, freeing and keeping track of. His DVD tracking program makes scene, why create a 5000 DVD struct for a few DVD's, allocate memory as you add new ones.
My Questions:
1. Everything in the book so far I have been able to do without allocating memory. The computer seems to allocate memory behind the scenes when the compiler creates my variables and temporary memory for my Functions.
2. In programs you folks write, do you always allocate and free memory for all your projects, or just in books examples of the DVD library when you allocate memory for each DVD title instead of saying myDvdTitle[5000]
-Lars
My Questions:
1. Everything in the book so far I have been able to do without allocating memory. The computer seems to allocate memory behind the scenes when the compiler creates my variables and temporary memory for my Functions.
2. In programs you folks write, do you always allocate and free memory for all your projects, or just in books examples of the DVD library when you allocate memory for each DVD title instead of saying myDvdTitle[5000]
-Lars