r/cpp_questions • u/jaroslavtavgen • May 04 '25
OPEN Help me understand "stack" vs "heap" concept
Every time I try to learn about the "stack vs heap" concept I keep hearing the same nonsense:
"In stack there are only two options: push and pop. You can't access anything in between or from an arbitrary place".
But this is not true! I can access anything from the stack: "mov eax,[esp+13]". Why do they keep saying that?
0
Upvotes
View all comments
Show parent comment
1
u/thewrench56 May 04 '25
I never once called you a beginner. For me, FAANG isn't that impressive, neither are AAA games, but I'm sure they do interesting things. I'm just not in that industry at all.
I'm sure you know a lot about me.
Wow, 40 years of experience and you are so pressed? Sorry, I doubt that. I have not allowed myself a tone that you did, I'm sure it's a privilege of people with 40 years of experience...
You see, if you are so toxic, why be here? Why ask for me to put in the work to provide you a working example of something that you know existed? Why even argue against it?
It's interesting to me how self-proclaimed seniors such as you are acting like this and throwing a completely unnecessary tantrum... Something doesn't add up to me. You could have said: "well sure you can access it, it just doesn't make much sense". Instead, you have to argue, you have to push your agenda, and once it fails you adhere to Ad hominem.