The binary of-42,42 is 000000000000001010.
So -42 is1111111/kloc-0. 1111101010 (Supplements)
For an unsigned integer with a negative number, the compiler will convert it into this number and get the number of numbers that the type of this number can take.
For example, if-1 is assigned to an 8-bit unsigned character, the result is 255, because 255 is the modulus value of-1 to 256 (-1 mod 255=256).