title: How to initialize char array and empty it again and again in a loop before strcpy() in C?
body: <p>I want to reinitialize d everytime in a loop</p>
  
  <pre><code>     char d[90];   
       while(ptr != NULL)
      {
          printf("Word: %s\n",ptr);
          //int k = 0;
          strcpy(d, ptr);
          d[sizeof(d)-1] = '\0';
          //something more
          ....
          ....
       }
  </code></pre>