Q:

In the case of strings, we can assign one string object to another

0

In the case of strings, we can assign one string object to another.

All Answers

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

string st1(10, 'c'), st2; // st1 is cccccccccc; st2 is an empty string
st1 = st2; // assignment: replace contents of st1 with a copy of st2
// both st1 and st2 are now the empty string

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