Code:
bool even (int n)
{
    return !(n & 1);
}