[Solved] C++ sum char and integer


Here s will be “3xzy1” as s[2]='x'+2; makes s[2] equal to ‘z’, where ‘z’ is a character, not a string.

'x'-1=='w';
'x'+1=='y';
'x'+2=='z'

solved C++ sum char and integer