title: Adding two large numbers together
body: <p>I have two large numbers stored in an array(p->numbers[50] and q->numbers[50]), and printed out in hexadecimal</p>
  
  <pre><code>1319df046
  111111111
  </code></pre>
  
  <p>When added together, I am returned with, in hexadecimal, </p>
  
  <p>242af'11'257</p>
  
  <p>However, apparently my answer "should" be</p>
  
  <p>242af0157</p>
  
  <p>There is a discrepancy when adding the f and 1 together, equaling 17, but printing 11 (as 17 is 11 in hexadecimal). I'm not sure why my output should be a 0 instead of 11</p>
  
  <pre><code>int sum = 0;
  int carry = 0;
  for(i = 9; i &gt;= 0; i--)
  {
      sum = p-&gt;numbers[i] + q-&gt;numbers[i];
  
      sum = sum + carry;
  
      answer[i] = sum;
  
      carry = sum / 10;
  
      printf("%x", answer[i]);
  }
  </code></pre>