Blogger Tips And Tricks|Latest Tips For Bloggers Free Backlinks

Thursday, 15 November 2012

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

Bit clear,program to bit clear,C bit clear,bit clear the number,bit clear the given number,C program to bit clear,bit clear program in C,bit clear in C,Write a program to Bit clear the given number using in C language,C program to bit clear the given number


Bit clear the given number

      The below program is developed for Bit clear the number        
                  #include<stdio.h>
                  main()
                  {
                           int n,pos;

                           printf("Enter numbers\n");
                           scanf("%d %d",&n,&pos);

                             n=n&(~(1<<pos));

                            printf("After bit clear : %d\n",n);
                  }

    Output:
                     Enter numbers
                          7
                         
                     After bit clear3

1 comments: