May 26, 2008 at 4:24pm
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
Only if your 'mailbox' array is not local to the function.