Operação Bit Wise
int main() {
unsigned int a=240, b=170;
printf("a=%u, b=%u\n", a, b);
printf("a&b=%u\n", a & b);
printf("a|b=%u\n", a | b);
printf("a^b=%u\n", a ^ b);
printf("~a=%u\n", ~a);
printf("a<<2=%u\n", a << 2);
printf("a>>3=%u\n", a >> 3);
return 0;
}
Mero