Message 1 of 6

Not applicable
11-28-2016
01:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
const ACHAR* WhatIsReturned() { AcString a = L"Test"; AcString b = L" this"; AcString c = a + b;
return c; }
What happens to c when this method returns. Does the underlying string encapsulated by c get lost when c goes out of scope or is a copy of the const ACHAR* returned?
Mike
Solved! Go to Solution.