单选题

在linux下64位c程序,请计算输出的三个sizeof分别是()

发布于 2022-03-03 16:48:29

在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
}

登录后免费查看答案
关注者
0
被浏览
27
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看