49

单选题 49 /76

下面C++程序的输出是_________。
void f(char * x)
{
    x++;
    *x='a';
}
int main()
{
    char str [sizeof("hello")];
    strcpy(str, "hello");
    f(str);
    cout<<str;
    return 0;
}

参考答案

hello
hallo
allo
以上都不是