3 ms·
It depends. If you want to study maths, yes. If you want to be a programmer: [status, value] = add(a, b); Is much more unparalleled-ly (?) readable from the p
by ChancyChance 4y ago
It depends. If you want to study maths, yes. If you want to be a programmer:
[status, value] = add(a, b);
Is much more unparalleled-ly (?) readable from the perspective of how a computer actually operates. In reality, this:
uint c = (uint)a + (uint)b; // (to make that other guy happy)
is really:
c = (a + b) % (sizeof(uint));
in "C", which is less readable but far more accurate.
- ChancyChance 4y agoThat’s 2^sizeof(uint)