cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Quick Question
Quick Question
May 26, 2008 at 4:24pm UTC
cbeginnerjames
(3)
Hey, I wanted to create a function that returns a memory reference from an array. Just wondering if this is correct:
Mail* getMessage()
{
return &mailbox[1];
}
THANKS!!!!
May 26, 2008 at 5:47pm UTC
Duthomhas
(13206)
Only if your 'mailbox' array is not local to the function.
Topic archived. No new replies allowed.