I want a function to return a char array.
Would Something like this work;
char* name(char first[], char second[])
{
char fullName[100];
/somehow make the names add/
return fullName;
}
Help please…
I want a function to return a char array.
Would Something like this work;
char* name(char first[], char second[])
{
char fullName[100];
/somehow make the names add/
return fullName;
}
Help please…
You can pass the pointer to the array into the function. Then populate the array in the function. Upon return, the array can be used.