程序输出的结果是 1
#include < stdio .h>
#include <string.h>
void main( )
{
char *p[]={"program","computer","design","chinese"};
printf( “ %s\n ” , p[1] ) ;
p[1]="student";
printf( “ %d\n ” , strcmp(p[1],p[3]) ) ;
printf( “%c\n”, **p);
}
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题