Re:Teaching C
by TorKlingberg on Wednesday May 11, 2016 @05:33AM
(#11673825)
A classic problem is code like this:
An optimizing compiler will likely remove the NULL check completely because the printf above it has undefined behavior if a is NULL.
[ Parent
| on HN ]
There are no comments on this comment yet.