2 ms·
(a) how program can depend on inspecting the value of a dangling pointer? I can't think of it as not a bug. (b) True. I think this one should be defined and st
by hawski 10y ago
(a) how program can depend on inspecting the value of a dangling pointer? I can't think of it as not a bug.
(b) True. I think this one should be defined and standardized.
(c) It seems that C99 defined this behaviour. https://stackoverflow.com/questions/11639947/is-type-punning-through-a-union-unspecified-in-c99-and-has-it-become-specified https://stackoverflow.com/questions/11639947/is-type-punning...
(d) I am not knowledgeable enough. Could you give an example?