The terminal operation on the clever code compares the size_t to -1. But if it&#x27;s unsigned this will never be true either, and so the test may be optimised away.<p>This probably demonstrates the point where clever code is more likely to have bugs ...