+ 3
Does 'a' + 'b' legal in C++...??
'a' and 'b' are characters...
2 Answers
+ 8
It is perfectly legal. The ASCII values will be added and displayed if printed. Please, this is something which takes a few seconds to verify.
std::cout << 'a' + 'b';
+ 5
If a and b are strings, yes. Else, no.