title: Why this weird code works?
body: <p>I got the this: </p>
  
  <pre><code>int main(){
      int Array[] = { 10, 20, 30 };
      cout &lt;&lt; -2[Array] &lt;&lt; endl;
      system("Pause");
      return 0;
  
  }
  </code></pre>
  
  <p>The output is: </p>
  
  <blockquote>
    <p>-30</p>
  </blockquote>
  
  <p>I want to know why the output is -30 and why causes this undefined behavior?</p>
  
  <p>does anyone knows?</p>