Check out example codes for "binary algebra cpp". It will help you in understanding the concepts better.

Code Example 1

unsigned char a=195;
unsigned char b=87;
unsigned char c;
c=a&b;

Learn ReactJs, React Native from akashmittal.com