#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; }
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题