C Programming Code Examples C > Bitwise Operators Code Examples Program to check even or odd using conditional and bitwise operator Program to check even or odd using conditional and bitwise operator Write a C program to input any number and check whether the given number is even or odd using bitwise operator. How to check whether a number is even or odd using bitwise operator in C programming. Logic to check even odd using bitwise operator in C programming. /* C program to check whether a number is even or odd using bitwise operator */ #include <stdio.h> int main() { int j; /* Input number from user */ printf("Enter any number: "); scanf("%d", &j); (j & 1) ? printf("%d is odd.", j) : printf("%d is even.", j); return 0; }