#include <stdio.h>
int main() {
int hex = 0x10;//0001 0000
int dec = hex;//16 = 10000 binary
//1<<2 -> 0000 0001 -> 0000 0100
dec = dec^(1<<4);// 1<<4 means 0001 0000 then 0001 0000 ^ 0001 0000?
printf("%d",dec);
}
To embed this program on your website, copy the following code and paste it into your website's HTML: