title: How to understand std::distance in C++?
body: <p>The code is as follow:</p>
  <pre><code>int B[] = {3,5};
  int C[] = {4,5};
  cout &lt;&lt; distance(B,C);
  </code></pre>
  <p>The output is:</p>
  <pre><code>-4
  </code></pre>
  <p>Can anyone explain why is this?</p>