3 ms·
>Simple in the sense that it is a small language. There are not a lot of constructs, abstractions, etc. C lets you allocate blocks of memory, and perform operat
by AngryParsley 15y ago
>Simple in the sense that it is a small language. There are not a lot of constructs, abstractions, etc. C lets you allocate blocks of memory, and perform operations on those blocks of memory. That's mostly it.
You forgot "to free those blocks of memory." It's OK. We C programmers often forget this. :)
- qdog 15y agoNot to pick too many nits, but I didn't use free() or malloc() for about 7 years of my career in programming C. Embedded systems sometimes still frown upon willy-nilly memory allocation ;) Of course, days when your build breaks and it's because someone, somewhere defined a piece of data as 8 bits, but your latest build has shifted some stuff around and suddenly two memory definitions have become one because of memory alignment...was probably more painful to track down than free() issues.