#include <stdio.h>
int main()
{
unsigned int x = -1;
int y = ~0; //type promotion from int to unsigned int
printf("%i\n",y);
if (x == y)
printf("same");
else
printf("not same");
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgoKCmludCAgbWFpbigpIAp7IAogICB1bnNpZ25lZCBpbnQgeCA9IC0xOyAKICAgaW50IHkgPSB+MDsgLy90eXBlIHByb21vdGlvbiBmcm9tIGludCB0byB1bnNpZ25lZCBpbnQKICAgcHJpbnRmKCIlaVxuIix5KTsKICAgaWYgKHggPT0geSkgCiAgICAgIHByaW50Zigic2FtZSIpOyAKICAgZWxzZQogICAgICBwcmludGYoIm5vdCBzYW1lIik7IAogICByZXR1cm4gMDsgCn0K