<returnType> funct() {
<type>* ptr=<address>;
}
at the end of the function ptr goes out of scope...does it also imply deletion of the <address> it pointed to? (by deletion i mean marked free)
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Thread: scope rule for pointersThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |