Say i have a variable myvar that is of type unsigned char,
what happens if the variable = 200 and then i sum it 200,
will it be 256 or 200?
Say i have a variable myvar that is of type unsigned char,
what happens if the variable = 200 and then i sum it 200,
will it be 256 or 200?
If an unsigned char has the value of 200, and then 200 is added to it, the result will roll over. It would then equal 144 since 400 - 256 = 144.
oh ok thanks
is that standard?