31

单选题 31 /101

下面的程序的输出是什么?
#include<stdio.h>
#include<string.h>
int main(void){
 int n;
 char y[10] = "ntse";
 char *x = y;
 n = strlen(x);
 *x = x[n];
 x++;
 printf("x=%s,", x);
 printf("y=%s\n", y);
 return 0;
}


参考答案

x=atse,y=
x=tse,y=
x=atse,y=e
x=tse,y=e