Blogger Tips And Tricks|Latest Tips For Bloggers Free Backlinks

Thursday 15 November 2012

Write a program to Bit checking the given number using in C language examples?

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

1 comments: