I have a function from which I need to return an array of values but I'm not sure how to go about this, do I need to use some sort of pointers? Some code shown below:
while (index<num_site)
{
max = get_biggest(index, results);
res_arr[index_res++] = results[max][index[max]-1].score;
}//while
}//m
I need to return res_arr from this, any help appreciated.
while (index<num_site)
{
max = get_biggest(index, results);
res_arr[index_res++] = results[max][index[max]-1].score;
}//while
}//m
I need to return res_arr from this, any help appreciated.