Good afternoon, I wonder if I can create a string function that returns an array.
Yes, if you're very careful managing scope and memory
Functions can not return arrays. On the other hand, they don't need to. Pass a pointer to the array to be modified, and let the function modify the pointed-to array.