Why when we take diff ans is according to diff of two digit but when adding giving ascii value

string s=“1234”;
cout<<‘9’-s[1];->7
cout<<‘9’+s[1];->108

@guptanikhil898
I hope it resolves your doubt.
image