Copied to another location?

So does it require 3 memory addresses?
Like “1” is present at 10k, and if we do
“1” + “2” does the copy also take place at some other memory location say 11k and new string is made at 12K??
does it require 3 addresses or 2?

No, the copy is itself made into the new string so you would require just 2 different addresses inside the system

1 Like