34

单选题 34 /76

在linux下64位c程序,请计算输出的三个sizeof分别是()
void func(char str_arg[100]){
     cout << sizeof(str_arg) << endl;
}
int main(int argc,char* argv[]){
     char str[] = "Hello";
     char *p = str;
     cout << sizeof(str) << endl;
     cout << sizeof(p) << endl;
     func("test");
     return 0;
}

参考答案

5,5,8
6,6,4
6,8,4
6,8,8