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*

4
  • 1
    @juanchopanza Thanks. Removed the misleading part. Commented May 24, 2014 at 15:30
  • Here, the array stackArray evaluates to a pointer to its first element: Ok, then where is that evaluation result stored? Is it evaluated (computed) at runtime or compile time? Commented May 24, 2014 at 15:46
  • 1
    @BabkenVardanyan It is evaluated during compile time. It's not stored but used to determine the address where the value 1 is stored in the statement stackArray[index] = 1;. Please read this for details stackoverflow.com/q/21972465/1809377 Commented May 24, 2014 at 16:20
  • 1
    I'll also leave this here en.wikipedia.org/wiki/Addressing_mode#Base_plus_index Commented May 24, 2014 at 17:26