|
|
|
|
|
by 1718627440
216 days ago
|
|
A pointer derived from one allocation and a pointer from another allocation does not need to compare the same, even if the address is. And you will likely invoke UB. This is because C tries to be portable and also support segmented storage. A pointer derived from only an integer was supposed to alias any allocation, but good luck discussing this with your optimizing C compiler. |
|