标签:class blog code http color com
算术类型:
不用sizeof()计算编译环境位数.
1
2
3 |
int a = 0; int *p = &a; cout<<( char *)(p+1)-( char *)(p)<<endl; |
32BIT 的编译环境返回4BYTE
sizeof()的特性分析:
http://www.cppblog.com/yearner/archive/2006/09/11/12307.html
http://blog.csdn.net/w57w57w57/article/details/6626840
标签:class blog code http color com
原文地址:http://www.cnblogs.com/nnoth/p/3772782.html