title: string not printing properly in C
body: <p>I am encountering a problem while printing out a string using a while loop in a standalone function.</p>
  
  <p>I have the following code: </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  int pword(char *);
  int main() {
      char s[] = "Alice";
      pword(s);
      return 0;
  }
  
  int pword(char *s) {
      while(*s!='\0') {
          printf("%s", s);
          s++;
      }
      printf("\n");
      return 0;
  }
  </code></pre>
  
  <p>This is printing: <strong>Aliceliceicecee</strong>.</p>