AND AND 1” 1” 0” https://daeudaeu.com/bit/ https://daeudaeu.com/bit/
OR OR 0” 0” 1” https://daeudaeu.com/bit/
NOT NOT 0” 1” 1″ 0” https://daeudaeu.com/bit/
XOR XOR 1” 1” 0” https://daeudaeu.com/bit/
<<” 0” https://daeudaeu.com/bit/
C >>” 0” https://daeudaeu.com/bit/
https://daeudaeu.com/bit/
ASCII   A Z a z   A(01000001) ~ Z(01011000) a(01100001) ~ z(01111000) 2 6 (10 32) (16 0x20) 1 0 10 32 : : : (XOR) char str[] = "HelloWorld"; int n = strlen(str); for (int i = 0; i < n; ++i) { str[i] |= 0x20; } cout << str << endl; C++ for (int i = 0; i < n; ++i) { str[i] &= ~0x20; } cout << str << endl; C++ for (int i = 0; i < n; ++i) { str[i] ^= 0x20; } cout << str << endl; C++ https://maku77.github.io/cpp/string/convert-case.html