title: How to test for the end of a pointer array?
body: <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
      char *t[10]={"Program", "hjl","juyy"};
      int i;
  
  
      //printf("%c \n",*t[3]);
  
      int ch=*t[0];
  
      for(i=0;*t[i]!='\0';i++){
  
          printf("%d",i);
  
  
      }
      return 0;
  }
  </code></pre>
  
  <p>The program stopped working in some time. Can anyone please explain the reason?</p>