Quick Question

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!!!!
Only if your 'mailbox' array is not local to the function.
Topic archived. No new replies allowed.