Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Find Odd or Even using Bitwise Operator in C

#include<stdio.h>
 
int main()
{
   int n;
 
   printf("Enter an integer\n");
   scanf("%d",&n);
 
   if ( n & 1 == 1 )
      printf("Odd\n");
   else
      printf("Even\n");
 
   return 0;
}