b*********n 发帖数: 1258 | | c**l 发帖数: 12 | 2 depends upon compiler吧
【在 b*********n 的大作中提到】 : 4 bytes还是8 bytes呀?
| b*********n 发帖数: 1258 | 3 how about g++ ?
【在 c**l 的大作中提到】 : depends upon compiler吧
| z******i 发帖数: 59 | 4 4
【在 b*********n 的大作中提到】 : how about g++ ?
| b*********n 发帖数: 1258 | 5 64 bit下的int也是4 bytes?
那就和32 bit下的int一样了,对吗?
【在 z******i 的大作中提到】 : 4
| d*****a 发帖数: 110 | 6 ISO/IEC 9899:1990, Programming Languages - C (ISO C) left the definition of
the short int, the int, the long int, and the pointer deliberately vague to
avoid artificially constraining hardware architectures that might benefit
from defining these data types independent from the other. The only
constraints were that ints must be no smaller than shorts, and longs must be
no smaller than ints, and size_t must represent the largest unsigned type
supported by an implementation. It is possible, for ins |
|