选择题

有以下程序(strcpy 为字符串复制函数, strcat 为字符串连接函数):
#include <stdio.h>
#include <string.h>
main( )
{char a[10]="abc",b[10]="012",c[10]="xyz";
strcpy(a+1,b+2);
puts(strcat(a,c+1));
}
程序运行后的输出结果是

【正确答案】 C
【答案解析】

本题考查字符串处理函数 strcpy 和 str1 cat, 执行完 strcpy(a+1, b+2); 后, a变为 a2; 执行完 strcat(a, c+1)后, a 变为 a2yz, 所以答案为 C 选项。