which one is right?

guest (guest)
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?
(#70734@0)
2001-5-15 -05:00

回到话题: which one is right?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=70734