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.

5
  • 6
    in short: depends. share your case. Commented Apr 17, 2015 at 7:39
  • 1
    For plain variables, the compiler handles it at compilation time. Commented Apr 17, 2015 at 7:43
  • @GrijeshChauhan not at int i: if block scope, at the entry of the block i is declared, see my answer.
    – ouah
    Commented Apr 17, 2015 at 7:59
  • @ouah yes I have seen your answer, and I am unsure if memory not allocated at int i. Edit ok got your point, you are correct thanks Commented Apr 17, 2015 at 8:04
  • 2
    Auto variables are typically allocated at the previous { symbol
    – Bregalad
    Commented Apr 17, 2015 at 8:12