views:

55

answers:

2

Dear all;

Besides the (somewhat dated) papers that appear in Wikipedia's ref section, are there good (teaching) materials that you know of that comprehensively discuss dynamic memory allocation pitfalls, techniques, good practices, etc. in C? Thanks.

+1  A: 

YouTube.

mcandre
Dervin Thunk
+1  A: 

The textbook Pointers On C by Kenneth A. Reek (ISBN-13 978-0673999863) Chapter 11, Dynamic Memory is a decent teaching source. I don't know if it is available elsewhere at a better price.

The comprehensive reference would probable by C: A Reference Manual, 5th ed by Samuel P. Harbison and Guy L. Steele (ISBN-13: 978-0130895929), covers C99 and although it is an excellent reference, not a straight teaching resource. I strongly recommend it for any serious C programmer's library.

Finally don't ignore the C FAQ just because it has been around a while, it contains answers to the most commonly asked questions in Usenet's C language newsgroup (comp.lang.c) asked by thousands of students and new programmers. The only gotcha is that you need to read FAQ all the way through at least once, to know where (which sections) some questions are dealt with.

mctylr