title: C - Why does this output "%s"
body: <pre><code>char *x = "world";
  x = &amp;x[6];  
  printf("%s", x);
  </code></pre>
  
  <p>Hi I can't understand why the above code is outputting the first argument in the printf statement. If I change it to <code>printf("f%s",x);</code> it outputs "ff%s" why does it output ff twice?</p>
  
  <p>Thanks </p>