boolean algebra c++ code example
Example 1: c++ boolean
bool isCodingFun = true;
bool isFishTasty = false;
cout << isCodingFun; // Outputs 1 (true)
cout << isFishTasty; // Outputs 0 (false)
//credit to w3schools.com
Example 2: binary algebra cpp
unsigned char a=195;
unsigned char b=87;
unsigned char c;
c=a&b;