#if 0
#include<stdio.h>

int main(){
    int a=10;//1010
    
    a=a | (1<<2);//1110//14  or if (1<<0)//1011 11
    a=~a;//0111= -a-1=-15;
    printf("%d",a);
}
#endif

#include <stdio.h>

int main() {
    unsigned int a=10;//1010
    a=a & (1<<1); //0001 (~1<<1)// ~1=1110 //1010 & 1100=1000
    printf("%d",a);
    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: