title: Converting an int to a char in C?
body: <p>I'm trying to add an int to a char array. My (broken) code is as follows,</p>
  
  <pre><code>string[i] = (char) number;
  </code></pre>
  
  <p>with <code>i</code> being some int index of the array and <code>number</code> is some integer number. Actually, while typing this out I noticed another problem that would occur if the number is more than one digit, so if you have some answer to that problem as well that would be fantastic!</p>