(C/C++) 32bit \ 64bit 記憶體空間
发布时间:2020-12-16 07:19:13 所属栏目:百科 来源:网络整理
导读:char str[] = " Hello " ; char *p = str ;printf( " sizeof(str) = %dn " , sizeof (str));printf( " sizeof(p) = %dn " , sizeof (p));printf( " sizeof(short) = %dn " , sizeof ( short ));printf( " sizeof(int) = %dn " , sizeof ( int ));printf(
char str[] = "Hello" ; char *p = str ; printf("sizeof(str) = %dn",sizeof(str)); printf("sizeof(p) = %dn",sizeof(p)); printf("sizeof(short) = %dn",sizeof(short)); printf("sizeof(int) = %dn",sizeof(int)); printf("sizeof(long) = %dn",sizeof(long)); printf("sizeof(long long) = %dnn",sizeof(long long)); printf("sizeof(size_t) = %dn",sizeof(size_t)); printf("sizeof(double) = %dn",sizeof(double)); printf("sizeof(long double) = %dn",sizeof(long double)); 64 bit : sizeof(str) = 6 sizeof(p) = 8 sizeof(short) = 2 sizeof(int) = 4 sizeof(long) = 8 sizeof(long long) = 8 sizeof(size_t) = 8 sizeof(double) = 8 sizeof(long double) = 16 32 bit : sizeof(str) = 6 sizeof(p) = 4 sizeof(short) = 2 sizeof(int) = 4 sizeof(long) = 4 sizeof(long long) = 8 sizeof(size_t) = 4 sizeof(double) = 8 sizeof(long double) = 12 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Oracle中查看所有的表,用户表,列名,主键,外键
- cocos2d-x缺少Default-568h@2x.png导致iPhone app 上下黑白
- flash – 如何知道actionscript 1,actionscript 2还是actio
- AJAX在静态页面中实现权限控制的方法参考
- ruby-on-rails – params.merge和跨站点脚本
- c – 构造虚拟基类时的编译器行为
- ruby-on-rails – 如何更改默认rails error div“field_wit
- XmlSerialize error: There was an error generating the X
- 我们对技术的依赖有多强?程序员为何关注它?
- postgresql 9.3.1 编译安装