I have the following code in C:
char x, y; // Some random values
unsigned ux = (unsigned)x;
unsigned uy = (unsigned)y;
And I need to determine if the expression ux - uy == -(y - x)
is always true or not, and to prove it or give a counter example.
I don't know if it's true or not, because they are different types of integers, with different sizes and two of them are signed and the other two are unsigned.