Your code behavior is undefined.
The literals const char[]that you pointed out in terms of const char*pointers for comparison.
And the behavior of comparison operators in pointers is determined only if the pointers are part of the same array; which you donβt have.
s, .
"3"s, ++ 14 std::string .