char* getFName()
{
return &fName // or &fName[0] if that makes more sense, same thing
}
//Then, in your main function
{
. . . .
char* TheName = getfName();
. . . .
}
TheName then becomes a pointer to the first element of fName, and you can use it as an array as well, by going TheName[i] in all the standard ways.