Here is an example.
Can you tell what is wrong with this code:
Code:
if (myValue < 0)
{
// Do something
}
else
{
// Do something else
}
You can't tell what's wrong? It is so obvious what's wrong to me by just glacing at it. But you could probably look at it one hundred times and still don't know what's wrong. Now let's try it slightly differently. See this time if you can tell me what's wrong?
Code:
if (uMyValue < 0)
{
// Do something
}
else
{
// Do something else
}
You see? You see!!! By adding an extra u, it immediately becomes crystal clear that the abobe code must be wrong. u means unsigned unmber. An unsigned integer could never ever be smaller than zero. So the logic of above code must be wrong. If this is a bug, I can spot in in one minute by looking at the u, and you could be spending several days without realizing this is a problem.