Saturday, May 23, 2009

The type of integer required to hold the difference between two

The type is signed int when the pointers are near, or signed long when
the pointers are far or huge. The type of ptrdiff_t depends on the memory
model in use. In small data models, the type is int. In large data models,
the type is long.

No comments:

Post a Comment