This is in C/C++:
Ok, I get how returning numbers, characters, bool, but how would I return a string. Such as:
How do I get a function to return a string?Code:// header files here char foo(); int main() { return 0; } char foo() { bar[7] = "foobar"; return bar; }




Reply With Quote