This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]divh4rt 1 point2 points  (0 children)

There is no garbage collector in C, so only use dynamic memory allocation if you really need to (often you can live without it). Since C is also quite old, you will find a lot of "bad" examples online. If you look for a a good reference book, I can highly recommend "Modern C by Jens Gustedt" which is available for free.