C examples for Operator:Bit Operator
Demonstrate the bitwise AND operator.
#include <stdio.h> int main (void) { int word1 = 077u, word2 = 0150u, word3 = 0210u; printf ("%o ", word1 & word2); printf ("%o ", word1 & word1); printf ("%o ", word1 & word2 & word3); printf ("%o\n", word1 & 1); return 0;/*from w w w . j a v a 2 s.c o m*/ }