In reply to dave_59:
In reply to sbellock:
In the second concatenation, all its operands are integral types, so the result is integral. But you cannot assign an integral type to a string type without a cast.
Let me understand, are you saying that in comb2, the concatenation operator {} will treat “hello” and other strings as integers, resulting in an integer output? If we want to assign it to a string type comb2, we need to convert it using string’(). Is that correct?