Hello I would like some info of how to it.
I have a double array which I read the data from a file in the main. What I want is to use the contents of this array in a function and return the result to main
Code:#include .... ........ function(what to write?) main() { double **array allocate space scan file have the data into the array something=function( ) } function(what to write?) { declare variables..... for (i=0;i<=num_of_forces;i++) { for (j=0;j<=num_of_genes;j++) { a=a+(array[i][j]); } return a; } }