Occasionally the needs arises to determine if a number is odd or even. Why would you need to do this? One example is the 'striping' of output, where information is presented in rows, and alternating rows have a different background color, like this:
Sure. Some structures, like an object with member arrays, will have you in a straight-jacket long before you determine where a particular value falls within the structure and how you should construct a reference to it.
Next time, try this:
The results are astonishingly different...