Considering that I'm compiler a 32 bits application (even though it doesn't change anything), does this code is safe?
cout << (numeric_limits<unsigned int>::max() + 1) << endl;
It prints "0" but does affect a bit of another variable? Let's say I have a byte(char) with the following bits and then I add 1: 1111 1111 (255). Would the result be "1 0000 0000" (256) and the cpu would only read the last 8 bits as my variable or would just reset the bit sequence?