I know I asked this question about a year ago but I came upon a simple solution that is probably common knowledge.
whats wrong? when i put that in "int/void main it doesn't return the variable. And in advance, how would i go about returning multiple variables?Code:int retvar()
{
char retvar[]="retvar";
return retvar;
}
int main()
{
retvar();
cout << retvar;
}