×

Loading...

which one is right?

char * v()
{
char * p="result of function v()";
return p;
}

char * v()
{
char p[]="result of function v()";
return p;
}

char * v()
{
return "result of function v()";
}

which one is right? Or all of them are false.
what is the diffirence?
Report

Replies, comments and Discussions: