15 lines
270 B
C
15 lines
270 B
C
#include <stdio.h>
|
|
|
|
int main() {
|
|
unsigned int a = 60;
|
|
unsigned int b = 13;
|
|
unsigned int r;
|
|
|
|
r = a & b;
|
|
printf("bitwise AND of 60 and 13: %d\n", r);
|
|
r = a | b;
|
|
printf("bitwise OR of 60 and 13: %d\n", r);
|
|
r = a ^ b;
|
|
printf("bitwise XOR of 60 and 13: %d\n", r);
|
|
}
|