下面是一个字符串连接的源程序,if后面的语句都不是很懂,特别是第二个for循环语句,有无大佬解释一下呀,拜托了!!!#include<stdio.h>void catStr(char *str1,char *str2){ int x,y; printf("s1=%s\ns2=%s",str1,str2); for(x=0;x<50;x++) if(*(str1+x)=='\0') break; for(y=0;*(str2+y)!='\0';y++) *(str1+x+y)=*(str2+y); *(str1+x+y)='\0'; printf("\ns1=%s",str1);}int main(){ char s1[50],s2[50]; printf("input words:"); scanf("%s%s",&s1,&s2); catStr(s1,s2); return 0;}