主观

阅读下面程序,分析cat函数的功能并写出程序的运行结果。

#include″stdio.h″

void cat(char * s,char * t)

{

while(*s) s++;

while((* s++=* t++)!=′\0′);

}

main( )

{

char s1[80]=″computer″,s2[80]=″Pentium_″;

cat(s2,s1);

printf(″% s\n″,s2);

}

参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服