<i>For memory allocation you often don&#x27;t need to use malloc.</i><p>True.<p><i>Many (most?) programs can mmap a large region of memory and allocate from that.</i><p>You don&#x27;t even need to do that for many applications. Coming from an embedded systems background where dynamic allocation is highly discouraged and almost never necessary, the amount of superfluous allocation&#x2F;deallocation I see in a lot of code is astounding; maybe it&#x27;s because of my experience, but I can often very easily find a way to do something <i>without</i> dynamic allocation and consequently O(n) space, with what usually turns out to be simpler (thus less chance of being buggy) code and O(1) space.<p>But when you <i>do</i> need dynamic allocation, malloc() isn&#x27;t bad at all.