Pointer Arithmetic data types
Posted on 2006-11-16
While I don't know if it is ANSI specified, I've seen before a data type which represents the difference or sum between two pointers, and I've heard it recommended that if you ever do pointer arithmetic, you cast the result to the appropriate data type.
This may be compiler specific, I'm not sure if the pointer arithmetic data type is defined in the standard. But regardless, can anyone tell me what this pointer-arithmetic data type is called? (I've seen it before, but now the name of the data type completely eludes me, and I can't find it on google.)