title: Array of ValueType in C# goes to Heap or Stack?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1113819/c-arrays-heap-and-stack-and-value-types">(C#) Arrays, heap and stack and value types</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to study some differences between memory allocation in c#</p>
  
  <p>Let's suppose that I have this instruction:</p>
  
  <pre><code>int[] array = new int[512];
  </code></pre>
  
  <p>Does the "array" go to the Heap? Or does it reserve 512 integers on Stack?</p>