.以下与库函数strcpy(char *p, char *q)功能不相等的程序段是()。
A. strcpy1(char *p, char *q)
{
while ((*p++=*q++)!='\0');
}
B. strcpy2( char *p, char *q)
{
while((*p=*q)!='\0')
{
p++;
q++;
}
}
C. strcpy3(char *p, char *q)
{
while (*p++=*q++);
}
D. strcpy4( char *p, char *q)
{
while(*p)
{
*p++=*q++;
}
}
|
|