This is in C/C++:
Ok, I get how returning numbers, characters, bool, but how would I return a string. Such as:
Code:
// header files here
char foo();

int main()
{

     return 0;
}

char foo()
{
     bar[7] = "foobar";
     return  bar;
}
How do I get a function to return a string?