Interview Question
Software Engineer / DevelopersWhen comparing signed int and unsigned int integers
if signed int is negative then it will be converted to (maximum number of unsigned int value - signed int) and hence condition failes
Here d=1- then will be considered (4294967295 -d ) and then compared
here 4294967295 is max unsigned int value
--- Ravi
comparison between signed and unsigned and hence for condition fails.
- abhispra January 25, 2010