首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
备考首页
>
C++
>
表达式和语句
32
填空题
32
/
47
某32位系统下, C++程序,请计算sizeof 的值
char str[] = "http://www.xxxxx.com" ;
char *p = str ;
int n = 10;
请计算
sizeof (str ) =
1
sizeof ( p ) =
2
sizeof ( n ) =
3
void Foo ( char str[100]){
请计算 sizeof( str ) =
4
}
void *p = malloc( 100 ); 请计算 sizeof ( p ) =
5
参考答案
(1)21(2)4 (3) 4 (4)4 (5)4
纠错
收藏
查看讨论
1
...
27
28
29
30
31
32
33
34
35
36
37
...
47
跳转到
确 定
上一题
下一题
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题