void f(char * x) { x++; *x='a'; } int main() { char str [sizeof("hello")]; strcpy(str, "hello"); f(str); cout<<str; return 0; }
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题