Neckbeard Shitlord
Unwanted
Caching doesn't matter with temporary variables, bro.While it's 'true' that they're both in ram, parts of the stack are very often found cached on L1 memory simply because it's what the CPU operates in most often. Or did you think it was faster magically?
There is no allocation involved in using the stack and no fragmentation of the heap.
Sorry you did not get asskissing posts you feel you are entitled to. Sometimes I get mad that no one brofisted one of my posts, too.jesus fucking christ - ignored
edit: also dear, shitlord, the memory heap is not a data structure, you're getting it confused with the other heaps, which are trees - unfortunate naming that.
Still wrong my friend. The heap is called a heap because the memory the OS provides your application is always stored in some kind of heap data structure. If you write your own memory manager chances are you will still use a heap in some form.