title: What is the %d value of char?
body: <p>Can someone explain the result of this? Please explain step by step clearly. Thanks a lot.</p>
  
  <p>Why it's -16, -6, - 22? How compiler got these value?</p>
  
  <p>Here's the code:</p>
  
  <pre><code>int main(void)
  {
      char i=240, j=250, sum;
      sum = i+j;
      printf("Result is: %d + %d = %d\n",i,j,sum);
  
      return 0;
  }
  </code></pre>
  
  <p>Here is the result: Result is: -16 + -6 = -22</p>