{
printf("%lld\n", -9223372036854775807ull - 1);
}
expected output : 9223372036854775808
actual output : -9223372036854775808
i know about wrapping around of unsigned integer but why subtracting 1 from an unsigned long long which wraps up to 9223372036854775809 did not give the result 9223372036854775808.
Can you give me a step by step explanation what happens here?
Thanks in advance