title: Computing length of array
body: <p>I have a C++ array declared as mentioned below:</p>
  
  <pre><code>CString carray[] =
  {
          "A",
          "B",
          "C",
          "D",
          "E"
  }
  </code></pre>
  
  <p>I want to determine the length of <code>carray</code> at runtime. I am doing:</p>
  
  <pre><code>int iLength = sizeof(carray)/sizeof(CString);
  </code></pre>
  
  <p>Is this correct?</p>