title: Assigning array to an int in C
body: <p>I have written the following code in C</p>
  <pre><code>int main(){
      int a = {1, 2, 3};
  }
  </code></pre>
  <p>It seems like the variable assigned, in this case a, always takes the value of the first array element.
  Now I'm wondering if the other array elements are discarded, or written to the memory after a, thus causing a buffer overflow.</p>