int x=5;
if(x=4) printf("true");
else printf("flase");
true
因为是if(x=4),不是if(x==4)
if(x=4), x=4 是赋值,等同于if(4) ,c语言里非 0 即为真,所以输出 true
int main( )
{
char *p1, *p2, str[50]="xyz";
p1="abcd";
p2="ABCD";
strcpy(str+2,strcat(p1+2,p2+1));
printf("%s",str);
return 0
}