Skip to content

Latest commit

 

History

History
41 lines (39 loc) · 860 Bytes

File metadata and controls

41 lines (39 loc) · 860 Bytes
title Pointer Subtraction | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-language
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
pointer subtraction
ms.assetid 4d515690-088a-43f6-bb8c-57b849f7ccf7
caps.latest.revision 6
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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

A ptrdiff_t is a signed int.

See Also

Arrays and Pointers