Re:What is your favorite C programming trick? (2009)
by saagarjha on Monday November 23, 2020 @03:52AM
(#25184819)
Dereferencing a null pointer and then immediately "undoing" it by taking its address is actually legal, I believe. I think the undefined behavior here is the member access instead of the magic sequence &* which is supposed to cancel out.
[ Parent
| on HN ]
There are no comments on this comment yet.