分类: C/C++
2015-12-24 15:54:18
char * getstring1()
{
char *p1 = "abcde";
return p1;
}
char *getstring2()
{
char *p2 = "abcde";
return p2;
}
void main()
{
int i = 0;
char *p1 = getstring1();
char *p2 = getstring2();
strcmp(p1,p2);
system("pause");
}
|