What’s the difference between an integer and a pointer?
https://blog.regehr.org/archives/1621 [blog.regehr.org]
2018-09-19 14:21
What should we take away from this? First, it is a big mistake to try to understand pointers in a programming language as if they follow the same rules as pointer-sized integer values. Even people who have come to terms with UB and its consequences are often surprised by this. Second, these issues are not specific to C and C++, but rather are going to create problems in any language that wants highly optimizing compilers but also permits low-level pointer manipulation.
source: L