title: warning: s comparison between pointer and integer
body: <p>while i am running the above title is appearing as error</p>
  
  <pre><code>#include &lt;stdio.h&gt;
   int main()
   {
    int i;
    char name[20];
    printf("Enter name: ");
    scanf("%s",name);
    printf("Your name is %s",name);
    while(name[i]!="\0") 
    {
      i++;
      if(name[i]==" ")
      {
          strcpy(b[i],name[i]);
          printf("copied name: ");
          scanf("%s",b[i]);
      }
    }
  }
  </code></pre>
  
  <p>while i am running this it is showing this error why? warning: comparison between pointer and integer.</p>