Casting boolean to int

Try it and see.

On some chips/systems, TRUE is all bits set. Then the answer would be 3.