title: C: Splitting integer and converting it to ASCII
body: <p>I would like to split integer into digits and then convert each digit to ASCII (in C programming language).</p>
  
  <p>Example:</p>
  
  <pre><code>int x = 0xABC
  /* split integers */
  int x1 = 0xA
  int x2 = 0xB
  int x3 = 0xC
  /* convert integers to ASCII */
  int x1 = 0x41
  int x2 = 0x42
  int x3 = 0x43
  </code></pre>
  
  <p>Also, if the integer is only 2 digits long (hex), I still need 3 splits:</p>
  
  <pre><code>int y = 0xBC
  /* split integers */
  int y1 = 0x0
  int y2 = 0xB
  int y3 = 0xC 
  .
  .
  .
  </code></pre>
  
  <p>Many thanks in advance!</p>