Art wrote:
>Ok for those of us who don't know 'C'?
>
> Why isn't it accurate Glenn?
>
<snip>
>
> #define leap_year(yy) ((yy & 3) == 0 ? 1 : 0)
This define only handles the 'evenly divisible by 4' part of the test.
Masking the low-order 2 bits from a number is equivalent to getting
the remainder after dividing by 4 - if the result is zero, then the
number is evenly divisible.
------------
Randy Medd
Telamon, Inc.