title: Why no variable size array in stack?
body: <p>I don't really understand why I can't have a variable size array on the stack, so something like</p>
  
  <pre><code>foo(int n) {
     int a[n];
  }
  </code></pre>
  
  <p>As I understand the stack(-segment) of part of the data-segment and thus it is not of "constant size". </p>