title: absolute value of difference between 2 chars in ASCII table without "abs" or "if"
body: <p>this is my code: </p>
  
  <pre><code>#include &lt;stdio.h&gt;
    void main() {
          char a, b;
          char c;
          printf("enter 2 chars: ");
          a = getchar();
          b = getchar();
          c = a - b;
          printf("%d",c );
    }
  </code></pre>
  
  <p>I'm trying to find the absolute value between two chars, for example, 'A'&amp;'a'=>32
  'a'&amp;'A'=>32
  my code shows negative answer,what should I do without using abs function or if, I tried this:</p>
  
  <pre><code>printf("%u",c );
  </code></pre>
  
  <p>but it gives me 4294967264. is there any <strong>simple</strong> way to do it? it should use getchar and putchar! </p>