3 ms·
That is a well defined function. And indeed implements isEven. Because unsigned int has defined overflow semantics. Essentially, it will eventually overflow an
by rocqua 5y ago
That is a well defined function. And indeed implements isEven. Because unsigned int has defined overflow semantics.
Essentially, it will eventually overflow and hit the correct base-case for 0.