How to match array?

I have a question here.

How do I match/overlap the array location of subfunction with/to main function?

For Example,

(subfunction) menu[3][2] to (main) menu[y][x]

3 to y & 2 to x
Is the menu array sent as a parameter in the function call in main to the subfunction?

menu array in subfunction is the return value and now I would like to call the exactly same memory location in main and gives it value, can i do that in standard c++??
(subfunction) menu[3][2] = 3
(subfunction) return menu[3][2] -> (main) menu[y][x]
Topic archived. No new replies allowed.