void function(char ch[]) { char* p = ch; *(p + 1) = '\0'; cout << ch << endl; } int main() { function("abc"); system("pause"); return 0; }
收起
报告相同问题?