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.
So if you have a = -1, b = 1000 and compare the two, a > b is actually true.
No comments yet.