指针减法Pointer Subtraction

ANSI 3.3.6, 4.1.1 保留两个指向同一数组 ptrdiff_t 的元素的指针之间的差所需的整数类型ANSI 3.3.6, 4.1.1 The type of integer required to hold the difference between two pointers to elements of the same array, ptrdiff_t

ptrdiff_t 是 signed int。A ptrdiff_t is a signed int.

另请参阅See Also

数组和指针Arrays and Pointers