C program to check odd or even using bitwise operator
#include<stdio.h> main() { int n; printf("Enter an integer : "); scanf("%d",&n); if ( n & 1 == 1 ) printf("Odd\n"); else printf("Even\n"); return 0; }
/*
Output : #1
Enter an integer : 5
Odd
Output : #2
Enter an integer : 4
Even
*/