title: How to know how many elements there are in a pointer array?
body: <pre><code>void print(char *arch[], int num){
      int i;
      for(i=0; i&lt;8; i++)
          printf("%s\n", *(arch+i));
  }
  </code></pre>
  
  <p>In this case I knew that <code>arch</code> was formed by 8 elements, but if I didn't know how can I know it? Is there a way?</p>