r/cpp • • Aug 09 '16

Stack and Heap: Commonly Misused Terms

https://tartanllama.github.io/c++/2016/07/18/stack-and-heap/
6 Upvotes

26 comments sorted by

View all comments

16

u/tcbrindle Flux Aug 09 '16

99% of the time (except for highly technical topics like function call ABIs), the terms "stack" and "heap" are already widely understood to be shorthand for referring to automatic and dynamic storage duration respectively. I'm all for being technically correct, but this post seems needlessly pedantic.

5

u/cdglove Aug 10 '16

If someone claims an automatic member variable is on the stack, I will correct that person. Automatic != stack.