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
  • 2
    Arrays are not always allocated on the stack. Yhat's an implementation detail that will vary from compiler to compiler. In most cases static or global arrays will be allocated from a different memory region than the stack. Arrays of const types may be allocated from yet another region of memory Commented Oct 29, 2009 at 6:59
  • 1
    I think Grumdrig meant to say "allocates 10 ints with automatic storage duration`. Commented May 30, 2011 at 21:01