Wednesday, August 22, 2007

Odd or Even (c/c++)

if (number & 1) printf("odd");

that is
if (number & 0x1)

No comments:

Post a Comment