title: C converting a char to string
body: <p>trying to convert char to a string in C:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main ()
  {
      int x = 80;
      char buffer[1] = {0};
      buffer[0] = (char) x;
      printf("%s", buffer);
      return 0;
  }
  </code></pre>
  
  <p>and I got "PP". 
  Why the result is "PP" instead of "P"?</p>