Bit checking,program to bit checking,C bit checking,bit checking the number,bit checking the
given number,C program to bit checking,bit checking program in C,bit checking in C,Write a
program to Bit checking the given number using in C language,C program to
bit checking the given number
Bit checking
This is for the checking the bit or bit checking.
#include<stdio.h>
main()
{
int n,pos;
printf("Enter numbers\n");
scanf("%d %d",&n,&pos);
n=n&(1<<pos);
printf("After bit checking : %d\n",n);
}
Output:
Enter numbers
6
9
After bit checking 0
Bit checking
This is for the checking the bit or bit checking.
#include<stdio.h>
main()
{
int n,pos;
printf("Enter numbers\n");
scanf("%d %d",&n,&pos);
n=n&(1<<pos);
printf("After bit checking : %d\n",n);
}
Output:
Enter numbers
6
9
After bit checking 0
c programming example codes for code writers
ReplyDeletesample c code Search An Element in Linked List