title: How to use sizeof(a)/sizeof(a[n])
body: <blockquote>
    <p>To avoid things quietly breaking if you change the array size, I suggest <code>std::copy(a, a + sizeof(a)/sizeof(a[0]), b);</code>. Even better, wrap the <code>sizeof()</code> junk in a macro -- or even betterer, use a function template instead: <code>template &lt;typename T, size_t N&gt; size_t size((T&amp;)[N]) { return N; }</code> – j_random_hacker Sep 8 '12 at 7:29 <br></p>
  </blockquote>
  
  <p>When i I was looking into Q&amp;A this morning I found this comment(with 4 upvotes). I'm quite new at C++. What does <code>a+sizeof(a[0])</code> means here, I thought <code>sizeof(a[0])</code> will return 4 which stands for a int memory byte? Many thanks in advance!!.</p>