I have a class which contains these private members:
char firstName[20];
char lastName[20];
and a member function:
const char *getfirstName();
When I create the prototype for this class, I need to return the firstname, but since firstname is stored as a char array, how could i return it?
char* getfirstname() const{return firstname;}