this should prove to be a simple question;
Am I allowed to return an array from a function? Is so, how?
Here is an example:
float [] functionName(float x, float y)
{
float f_array[2];
f_array[0] = x;
f_array[1] = y;
return f_array;
}
in an attempt to answer my question I would say that you are not allowed to do this (but why). And the alternative approach would be to return a pointer to that array?