Bitwise Operator, examples
printf("~w1 = %d\n", ~w1);
printf("~w2 = %d\n", ~w2);
printf("w1 & w2 = %d\n", w1 & w2);
printf("w1 & ~w2 = %d\n", w1 & ~w2);
printf("~w1 & ~w2 = %d\n", ~w1 & ~w2);
printf("w1 | w2 = %d\n", w1 | w2);
printf("~(w1 | w2) = %d\n", ~(w1 | w2));
printf("w1 ^ w2 = %d\n", w1 ^ w2);
This is program pg144.c