I expected that the result of “min” operation will always be the same → 230, at least with (int) casting, but it isn’t. Does anybody know what I’am doing wrong?
I don’t remember whether char is considered signed or unsigned in C, but if it is signed, then char has the range -128 to 127. This will definitely change the expected behavior.
It is unspecified, and it varies depending on platform. (Some things, while unspecified, are consistent nonetheless. This is not one of those.) I’ve been bitten by this before.