title: How to know the size of a const array?
body: <p>given the following code:</p>
  
  <pre><code>const myStr codesArr[] =  {"AA","BB", "CC"};     
  </code></pre>
  
  <p>myStr is a class the wraps <code>char*</code>. 
  I need to loop over all the items in the array but i don't know the number of items.
  I don't want to define a <code>const</code> value that will represent the size (in this case 3)</p>
  
  <p>Is it safe to use something like:</p>
  
  <pre><code>const int size = sizeof(codesArr) / sizeof(myStr);
  </code></pre>
  
  <p>what to do?</p>