There are a few things wrong with that.
If you want to return a float array, then declaring the function as returning a float is the wrong way to go!
float* c_Test::mf_ReturnFloatArray(float arrIn[])
Would be a better idea.
Secondly, it is not a good idea to return an array that has been created on the stack anyway - it is called a
hanging reference
or a
dangling reference
because it returns a pointer to memory that will be re-used by the next function call. To return an array, you should create it on the heap and release the memory correctly when you have finished with it.
Other wise, you will get intermittent faults, which are a PITA to track down and solve.