Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 578 Bytes

pointer-subtraction.md

File metadata and controls

16 lines (12 loc) · 578 Bytes
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Pointer Subtraction
Pointer Subtraction
11/04/2016
pointer subtraction
4d515690-088a-43f6-bb8c-57b849f7ccf7

Pointer Subtraction

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

The ptrdiff_t typedef is an int on the 32-bit x86 platform. On 64-bit platforms, the ptrdiff_t typedef is an __int64.

See also

Arrays and Pointers