Could someone give me an example of how to pass a double array from the main method/function to another function. I need to pass by reference. Meaning, what I update in the function called by main needs to be reflected in the original array in the main function. I have tried some stuff with passing by reference and using pointers, but I am having trouble.
I figured I could "cheat" around this problem by making my two dimensional array global, but my compiler gives me errors saying that I can't instantiate (may not be exact terminology) the array outside of a function.
I hope this is clear. Thanks in advance.