How do i return an array from a function?

I have an array in a function call and i want it to be sent to the main program.

//prototype
float functionA(float f, float g);

.
.
.


float functionA(float f, float g)
{

f = f*5;
g = g*5;
float ArrayA = [g f];

return ArrayA;
}

in the main program:

float ArrayB = functionA(f, g)

This is what i thought of doing, but it doesnt work
I considered using pointers but im not sure how to use it
It can't be done directly.
http://www.cplusplus.com/forum/beginner/43688/#msg236300
It's better to use vectors, though.
Topic archived. No new replies allowed.