x>y is a mixed expression involving two operands of different types,one of
unsigned int and other signed int.Since implicit type conversion takes
place in such cases,the signed int is converted to unsigned int ,which
means that
 -2(signed) is converted to

4294967294 (unsigned) .,and then the comparison takes place.

http://ideone.com/VAyV5

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to