I know that unsigned integers are only positive numbers (and 0), and can have double the value compared to a normal int. Are there any difference between
in
In the case of int, there's no difference. It only makes a difference with char, because
char is signed or unsigned, andchar, signed char, and unsigned char are three distinct types anyway.So you should use signed if you need a signed char (which is probably rarely). Other than that, I can't think of a reason.