I have two questions actually
I am trying to do encryption in C++ using the XOR operation. When i encrypt any two characters i get the ? as the encrypted character why is that?
Here is a sample of my code Xoring a and b.
#include<iostream>
using std::cout;
using std::cin;
int main()
{
    char x='a';
    char y='b';
    char d=x^y;
    cout<<"a xor b = "<<d<<"\n";
    return 0;
}
 
    