I know that you can't simply return an array from a function to main but since I'm so confused on pointers, I need to ask for help.
Here's basically a sketch of what I have:
I end up with bunch of big numbers if I try to print the array on main, but when I print the array in "GetArray" function, they come out as they are supposed to.
int main (void)
variable = GetArray();
// do bunch of stuff here that fills the array
How can I be able to do this successfully?