Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 4
    The standard says that it's an rvalue, i. e. that it has no storage. Now in practice, it's almost always implemented as an extra "0th" function parameter, but in theory a compiler could proceed to emitting code that calculates the address of the object every time it encounters this. Commented Aug 29, 2014 at 4:56
  • 1
    You are wrong in believing that every local variable has a stack location. Some variables are only kept in registers. Commented Aug 29, 2014 at 10:27