4 ms·
When comparing a signed and unsigned integer, the signed integer is promoted to unsigned integer. So if you have a = -1, b = 1000 and compare the two, a > b is
by DashAnimal 3y ago
When comparing a signed and unsigned integer, the signed integer is promoted to unsigned integer.
So if you have a = -1, b = 1000 and compare the two, a > b is actually true.
- deleted 3y ago[deleted]