Can someone explain the result of this? Please explain step by step clearly. Thanks a lot.
Why it's -16, -6, - 22? How compiler got these value?
Here's the 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;
}
Here is the result: Result is: -16 + -6 = -22
 
     
    