Yet another way:
Code:
if (X & 1) {
  ; X is odd
}
& is the bitwise AND operator (not to be confused with &&)