3 ms·
This tool I recently made can help: https://www.nayuki.io/page/summary-of-c-cpp-integer-rules#arithmetic-conversion-rules-simulator https://www.nayuki.io/page/s
by nayuki 4y ago
This tool I recently made can help: https://www.nayuki.io/page/summary-of-c-cpp-integer-rules#arithmetic-conversion-rules-simulator https://www.nayuki.io/page/summary-of-c-cpp-integer-rules#ar...
For example, you can see what (signed long) > (unsigned int) would convert to, under different environment bit width assumptions.
Also, there's a discussion on Reddit: https://www.reddit.com/r/cpp/comments/x4x01f/cc_arithmetic_conversion_rules_simulator/ https://www.reddit.com/r/cpp/comments/x4x01f/cc_arithmetic_c...