c**********e 发帖数: 2007 | 1 In my computer, the size of a pointer is always 4. But why?
Because the address is essentially a long integer?
I see the following:
size of unsigned integer is 4
size of integer is 4
size of long is 4
size of float is 4 |
f*******t 发帖数: 7549 | 2 Because your system is 32-bit architecture.
If your system is 64-bit, the size of any pointer is 8.
So that's a common way to decide whether a system is 32-bit or 64-bit. |
h**6 发帖数: 4160 | 3 Try to test in DOS or Windows 7 |
c**********e 发帖数: 2007 | 4 Is the address essentially a long integer? Thanks. |
i*****e 发帖数: 113 | 5 内部只是存储方式,外在表现为整形指针枚举等具体的类型
Is the address essentially a long integer? Thanks.
【在 c**********e 的大作中提到】 : Is the address essentially a long integer? Thanks.
|
c**********e 发帖数: 2007 | 6 我记得指针实际上是一个地址,可以cast为一个长整数来者。是不是这样?
【在 i*****e 的大作中提到】 : 内部只是存储方式,外在表现为整形指针枚举等具体的类型 : : Is the address essentially a long integer? Thanks.
|
V******B 发帖数: 3940 | 7 指针变量的内容是一个地址,你说地址有多大?
32位机就是32位的地址64位机就是64位的地址
【在 c**********e 的大作中提到】 : 我记得指针实际上是一个地址,可以cast为一个长整数来者。是不是这样?
|