Integers in C quiz
I did fairly well in the test (I didn&#x27;t remember that you couldn&#x27;t shift into the sign bit), but it really helps highlight how stupid the C promotion rules are. In C as soon as I have to do arithmetics with anything but unsigned ints all sorts of alarm bells start going off and I end up casting and recasting everything to make sure it does what I think it does, coupled with heavy testing. Now add floats and doubles into the mix and all bets are off.<p>Rust not having a default &quot;int&quot; type and forcing you to explicitly cast everything is such an improvement. Truly a poster child for &quot;less is more&quot;. Yeah it makes the code more verbose, but at least I don&#x27;t have to worry about &quot;lmao you have a signed int overflow in there you absolute nincompoop, this is going to break with -O3 when GCC 16 releases 8 years from now, but only on ARM32 when compiled in Thumb mode!&quot;