title: Convert char to int in C?
body: <p>I was reading some examples in how to convert char to int, and i have this code:</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      char ch1 = 125, ch2 = 10;
      ch1 = ch1 + ch2;
      printf(&quot;%d\n&quot;, ch1);
      printf(&quot;%c\n&quot;, ch1 - ch2 - 4);
      return 0;
  }
  </code></pre>
  <p>as i know that if we made any Character arithmetic the char type will convert to int</p>
  <p>so why the result of  first printf statement is <strong>-121</strong>  not <strong>135</strong> as i know int range will handle 135 so no overflow will happened.</p>
  <p>the second printf statement will print y because we put %c in the printf .</p>