Page 33 - INTRODUCTION_TO_C++_Neat
P. 33

Assume if A= 60; and B = 13; now
                                          A=
                                          B=0

A&B = 0000 1100
A|B = 0011 1101
A^B = 0011 0001
~A = 1100 0011
   28   29   30   31   32   33   34   35   36   37   38