title: How to know how many element the string array include?
body: <p>I have a code can printf all of the string element like</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int main()
  {
      char * c[]={"I love you.","I don't."};
      char **p = c;
      for(int i=0;i&lt;2;i++) //I judge the number is 2 by my eyes
          printf("%s\n",*p++);
      return 0;
  }
  </code></pre>
  
  <p>But I don't like that part that I just can know the number is <code>2</code> by my eyes.Is there any elegant method can know how many element the array <code>c</code> contain?A in-built function maybe name <code>count</code> is ecpected in this post.Such as <code>count(c)</code> can give me the <code>2</code>.</p>