How to pass a matrix/array from main to a function
Hello,
http://codeviewer.org/view/code:a70
As you can see i have a bunch of matrix and an array in my main function and i have a bunch of other functions listed above. I'm trying to pass the matrix and array to those other functions and in those functions do some checks and edit the values of those matrix and array that are in the main. I don't think im suppose to return, am i passing them correctly?
so....
declare matrix/arrays in main
pass them to functions
do some checks
if it checks out the condition, edit the values of those matrix and array in the function that i passed them to(to do so i would have to pass them? if so how)