ok.guys thanks for the help on malloc but does a stack work like this...
ps. does the stack work like this, the amount of memory needed in main is places on the stack then when we go to another function main memory is pushed off the top and the memory for the new function is poped on the bottom then freed when we go to another function and all the memory used locally is freed automatically when a program terminates.
thanks again, a learner(wanting to be a master).
If a heap is'nt any free space on the hard drive what is it.