4 ms·
Arithmetic on pointers in turn is only defined if the pointers point within the same object (or right past the end of that object). One example of using intptr
by bonzini 5y ago
Arithmetic on pointers in turn is only defined if the pointers point within the same object (or right past the end of that object).
One example of using intptr_t would be going from a pointer passed to free() to a metadata block for the memory that must be freed.