Your return type could be string, but you would have to use the string class to build it instead of a character array. Otherwise, you can return a char pointer to the first element in your array. I'm pretty sure you can't return an actual array in C++.
Comment