Q:

The compound assignment operator (+=) (§ 1.4.1, p. 12) appends the right-hand operand to the lefthand string

0

The compound assignment operator (+=) (§ 1.4.1, p. 12) appends the right-hand operand to the lefthand string:

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

string s1 = "hello, ", s2 = "world\n";
string s3 = s1 + s2; // s3 is hello, world\n
s1 += s2; // equivalent to s1 = s1 + s2

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now