View Single Post
Old May 22nd, 2006, 9:20 PM   #3
Twilight
Programmer
 
Join Date: Apr 2006
Location: Calgary, Alberta
Posts: 67
Rep Power: 3 Twilight is on a distinguished road
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.
Twilight is offline   Reply With Quote