Re: Arrays in C++
Dan Carnathan <[email protected]>
| Newsgroups | gmane.comp.programming.cppug |
|---|---|
| Message-ID | <[email protected]> |
Thank you this is very helpful. --- Haroon Shafiq <[email protected]> wrote: > you are returning an array that is being declared in > the called function. it is created on the function > local stack and is destroyed as soon as the function > returns. you could make it a global array, or create > it in the calling function and pass its pointer as > an argument to the called function. still if you > want to declare it in called function, you can make > it static so that its value is preserved even if the > function returns. > haroon > > > --------------------------------- > Do you Yahoo!? > Yahoo! Search - Find what youre looking for faster. ===== All the best, Dan __________________________________ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/cppug/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/