This page has a C program to check Even or Odd using Bitwise Operator. Even number is an integer number which can be dividable by 2. The remainder after division of an even number by 2 is zero. For examples: The Even numbers are 0, 2, 4, 6, 8, . . . Odd number is an Integer number which can not be dividable by 2. The remainder after division of an Odd number by 2 is one. For examples: The Odd number are 1, 3, 5, 7, 9, 11, 13, . . . The below given C program is used to check whether a number is Even or Odd using Bitwise Operator. Kindly check out the Even or Odd using Bitwise Operator. The Even or Odd program can be asked in various ways for school and college going students. The question of Even or Odd program may be as

1). Write a C program to check whether the given number is odd or even using Bitwise Operator.

2).Write a C program to check whether the given number is even or odd using Bitwise Operator.

3). Write a C program check even or odd using if else and Bitwise Operator.

#include<stdio.h>

int main(){

int
num,rem;

clrscr();

printf(" Enter an integer number: ");

scanf("%d",&num);

rem =
num & 1; //Bitwise Operator & used

if(rem == 0)

printf("\n %d is an even number.",num);

else

printf("\n %d is an odd number.",num);

getch();

return 0;

}

Enter an integer number:
13

13 is an odd number.

Enter an integer number: 674

674 is an even number.

* C program to check even or odd using Bitwise Operator

* C program to find Sum of Odd Digits of a Number

* C program to find Sum of Even Digits of a Number

*
C program to find Sum of Even and Odd Digits of a
Number

*
C program to print Odd Digits of a
Number

* C
program to print Even Digits of a
Number

* C
program to display Odd numbers from the given N
numbers

* C
program to display Even numbers from the given N
numbers

* C program to check whether a number is odd or even.

*
C program to check odd or even using if else

* C program to check odd or even using switch
case

* C program to check odd or even using
function

* C program to check odd or even using Ternary
Operator

**About
Author**

I am Er. T. Tharesh Kumar working as a Professor and Head of Department of Computer Science in an Arts and Science College. I have designed this website to provide solved example programs of different categories for all the school and college going students to learn C language deeply, and to practice Interview based Multiple Choice (Objective Type) questions and answers.

* C Program to find whether the given number is Odd or Even,

* C Program to find the Sum of Odd Digits,

* C Program to find the Sum of Even Digits,

* C Program to find the Sum of Even and Odd Digits,

* C Program to Display Odd digits,

* C Program to Display even digits,

* C Program to Display Odd Numbers,

* C Program to Display Even Numbers,

* C Program to Check whether the given number is Armstrong number,

* C Program to display the Armstrong numbers in Range,

* C Program to display the Armstrong numbers between 1 and 1000,

* C Program to check perfect number, perfect numbers in range,

* C Program to Check Prime number, Prime numbers between 1 and 100,

* C Program to display the Prime numbers in a Range,

* C Program to display the Sum of Prime numbers,

* C Program to Check Strong number,

* C Program to display the Strong number in Range,

* C Program to Check whether the given number is polindrome number or not,

* C Program to Check polindrome number using for loop,

* C Program to Check polindrome number using Recursion,

* C Program to check whether the given string is polindrome or not,

* C Program to find the Roots of Quadratic equation,

* C Program to display Fibonacci Series,

* C Program to display the Fibonacci Series using an array,

* C Program to display the Fibonacci Series using while loop,

* C Program to find the Sum of Fibonacci Series, Factorial of Number,

* C Program to find the Factorial without using Recursion,

The Even or Odd program with Bitwise Operator in C is used to test any given integer number and to indicate whether the number belongs to Odd or Even. It is clear that when you divide an Even number by 2, you will get Zero as remainder, and when you divide an Odd number by 2, you will get one as remainder. The both Even and Odd numbers are the natural Integer numbers and so that the numbers have no decimal point.