2 ms·
The C standard doesn't define what happens when you cast an integer to a pointer like that. For example I work with a compliant C implementation where this woul
by chrisseaton 7y ago
The C standard doesn't define what happens when you cast an integer to a pointer like that. For example I work with a compliant C implementation where this would not work, because it uses fat pointers.
- nrclark 7y agoInteresting! I didn't know that. Does uintptr_t exist on your platform? If so, how does it work?