Sun Studio 12:C 用户指南

E.1.7 数组和指针 (G.3.7)

E.1.7.1 (6.3.3.4,7.1.1)The type of integer required to hold the maximum size of an array; that is, the type of the sizeof operator, size_t(存放数组的最大大小所需的整型;即 sizeof 操作符的类型 size_t):

stddef.h 中定义的 unsigned int

对于 -Xarch=v9,为 unsigned long

(6.3.4) The result of casting a pointer to an integer, or vice versa(将指针强制转换为整数的结果,或将整数强制转换为指针的结果):

对于指针以及类型为 intlongunsigned intunsigned long 的值,位模式不变。

(6.3.6、7.1.1)The type of integer required to hold the difference between two pointers to members of the same array, ptrdiff_t(存放指向同一数组中成员的两个指针之差所需的整型 ptrdiff_t):

stddef.h 中定义的 int

对于 -Xarch=v9long