While we are talking about C skills, recently I got hit by this gotcha. I never knew a simple comparision could be this complex.
Question: Whats ru, rs ?
unsigned int u0 = 0;
unsigned int u1 = 1;
int s0 = 0;
int s1 = 1;
int ru = 0 > u0 - u1;
int rs = 0 > s0 - s1;
Answer: ru is 0. rs is 1.