I put a prinf inside the method splitContent and I the method works properly.
Then, somewhere else in my code I call the method above using the following code:
I want to retrieve the content of my array back, but the code above does not
work to do that, can somebody help me please, I have already read about pointers
but I am still a lot confused. Thank you in advance for your help.
[code]"Please use code tags"[/code]
The return value of your function makes no sense.
You could pass the array to be filled to the function float* splitContent(char info[], float data[]); However you will need to reserve enough space in the client code. (or use vector)