![]() |
1
4
不,不是。作为反例,对于32位CPU,指针在C实现中通常是32位宽,
*
但C需要类型
* 例如, GCC uses the pointer representation specified by the target application binary interface (ABI) defines the size of an address as 4 bytes .
根据当前C语言标准第5.2.4.2.1/1段,类型为
|
![]() |
Mushy · C++11自动和void*泛型 7 年前 |
![]() |
Mushy · 另一个空洞的话题;我只是想问一下,因为我很困惑 7 年前 |
|
Migsi · static_cast之后有没有方法进行类型安全检查? 8 年前 |
![]() |
Cloud · 带指向父结构指针的结构:最佳方法 8 年前 |
|
totoro · 在Python SWIG中包装void*参数 9 年前 |
|
mytosus · 尝试访问结构中的空指针时出现Segfault 9 年前 |
![]() |
HighPredator · 使用size_t进行void指针模拟 10 年前 |