Another commenter said that checking if the variable's memory address is in the stack region or heap region, and that is true, but I also wanted to mention that sometimes stack variables live short enough that they're simply stored in a register instead of actually put in memory.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: