title: Comparing arrays for equality in C++
body: <p>Can someone please explain to me why the output from the following code is saying that arrays are <strong>not equal</strong>?</p>
  
  <pre><code>int main()
  {
  
      int iar1[] = {1,2,3,4,5};
      int iar2[] = {1,2,3,4,5};
  
      if (iar1 == iar2)
          cout &lt;&lt; "Arrays are equal.";
      else
          cout &lt;&lt; "Arrays are not equal.";
  
      return 0;   
  }
  </code></pre>