title: How to convert int to char[] in c++
body: <p>How could i go about converting 56 and 124 to a character array? I don't understand how you could split up an integer and put it into different parts of a character array.
  I want to put</p>
  
  <pre><code>int num = 56;
  </code></pre>
  
  <p>into </p>
  
  <pre><code>char num[3] 
  </code></pre>