3 ms·
Does that matter? If you change the integer then you are not allowed to cast the altered value to a pointer. And a compiler could enforce this if it really wa
by Dylan16807 5y ago
Does that matter? If you change the integer then you are not allowed to cast the altered value to a pointer.
And a compiler could enforce this if it really wanted to.
When you only have to worry about pointer arithmetic on actual pointers, it's straightforward to make sure they never alias.