I need my function to return an array, but it doesn't take an array as argument as most of search examples show.
The code is like this:
double myfunction ()
{
double arr[10];
//assign values to the array
return arr;
}
main()
{
double arr2[10];
arr2[10] = myfunction;
//print arr2
}
When I used pointers to display the array, I got values like "CCCCCC"...