title: C++ Dereferencing Arrays
body: <p>I never read anything about dereferencing arrays like pointers and I believe it shouldn't work. But the following code does work using QT Creator and g++ 4.8:</p>
  
  <pre><code>int ar[9]{1,2,3,4,5,6,7,8,9};
  cout &lt;&lt; *ar &lt;&lt; endl; //prints the first element of ar
  </code></pre>
  
  <p>Is it proper behavior or just the compiler fixing the code?</p>