2 ms·
That is actually allowed in the standard; it specifically says that casting a pointer to an integral type of sufficient size is a reversible operation (though i
by aidenn0 13y ago
That is actually allowed in the standard; it specifically says that casting a pointer to an integral type of sufficient size is a reversible operation (though it I'm not sure if this is not well defined: (int i[2]; (int )((int)i)+sizeof(int)
- dllthomas 13y agoCould you have a standards-conforming implementation where pointers were big-endian and other integral values little-endian? That would break your example code. I don't know of any architecture that would motivate that, of course...