If you want the function to give you the table, you probably need pointers [or a global variable]