check a number whether it is odd or even by bitwise operato – Coding Question 3
Write a program to check a number whether it is odd or even by bitwise operator. #include<stdio.h> int main() { int a,b; printf("n Enter the a Number: "); scanf("%d",&a); b= a & 1; // Not Necessary only to check printf("n Resultant = %d",b); // Even odd Checking if(b) printf("n %d is odd",a); else printf("n %d […]
check a number whether it is odd or even by bitwise operato – Coding Question 3 Read More »