3 ms·
Right but the post you're replying to asked for any way to do this without invoking Undefined Behaviour. If p is a null pointer, dereferencing it is Undefined
by tialaramex 5y ago
Right but the post you're replying to asked for any way to do this without invoking Undefined Behaviour.
If p is a null pointer, dereferencing it is Undefined Behaviour and you lose immediately.