6 ms·
In the end, it's very simple and intuitive. 1- If you need arithmetic, use signed; if you need a bitmask, use signed. C is not assembly, and bit shift is no mu
by pif 4y ago
In the end, it's very simple and intuitive.
1- If you need arithmetic, use signed; if you need a bitmask, use signed. C is not assembly, and bit shift is no multiplication nor division.
2- Make sure you stay within bound, as in: don't even think you can approach the boundaries. C is not assembly, and overflow flag does not exist.