title: How to get a size of char**?
body: <p>I want to count size of my array (how many values/indexes are there).
  I've found something like this on StackOverflow</p>
  
  <pre><code>char **sentences;
  
  while ((c = fgetc(fp)) != EOF) { 
      ... fill the array...
  }
  
  size_t w = sizeof(sentences); // this is wrong! it returns size of pointer (memory)
  </code></pre>
  
  <p>It gives me "w = 4" but my array has 6 records.
  I need this for "for loop" to print my results (tried to count every loop in "while", but I got it in different function and I don't know to return 2 values in array [count|array of strings]).</p>
  
  <p>I will be happy for any idea how to print the whole array. </p>