Re:Pointers Are More Abstract Than You Might Expect in C
by joosteto on Monday July 02, 2018 @07:04AM
(#17440676)
When I compile the example, i get:
OK, so gcc reordered a & b; I'll fix this by chaning the initialisation of p and q to:
But when I now run the example, I get:
So, p==q only evaluates to 1 if optimisation is enabled.
[ Parent
| on HN ]