So, what happens in s1 = s2 ?Code:string s1 = "first string"; string s2 = "second string"; s1 = s2;
- Is that the address of s2 copied to s1 (Shallow copy)?
- Copy the entire contents (deep copy) ?
- or What ?
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 19
Thread: string in Stack or Heap ?Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |