I'm reading a book that says:
"In an expression like a * b, if a is -1 and b is 1, then if both a and b are ints, the value is, as expected -1. However, if a is int and b is an unsigned, then the value of this expression depends on how many bits an int has on the particular machine. On our machine, this expression yields 4294967295."
My question is:
Why the value of this expression depends on how many bits an int has on the particular machine? And how do they get that result of 4294967295 (at the end of the text).
Sorry for my bad english.