title: C sizeof char* array
body: <p>I have a <code>char*</code> array as follows:</p>
  
  <pre><code>char *tbl[] = { "1", "2", "3" };
  </code></pre>
  
  <p>How do I use the <code>sizeof</code> operator to get the number of elements of the array, here 3? </p>
  
  <p>The below did work, but is it correct?</p>
  
  <pre><code>int n = sizeof(tbl) / sizeof(tbl[0]) 
  </code></pre>