title: Store an integer value in a character array in C
body: <p>It is a very trivial question but I don't know why I am not getting the correct output. Here is what I am trying to do:</p>
  
  <pre><code>char sendBuffer[1000];
  int count=0:
  while(count&lt;10)
  {
      sendBuffer[0]=count;
      sendBuffer[1]='a';
      sendBuffer[2]='b';
      sendBuffer[3]='c';
      sendBuffer[4]='\0';
      printf(%s,sendBuffer);
      count=count+1;
  }
  </code></pre>
  
  <p>In the output, all buffer is printed correctly except the first index. I want 1,2,3 and so on to be printed at the start of the buffer but it does not work. Please Help</p>