News for hackers. Stuff that matters.
Re:Teaching C by TorKlingberg on Wednesday May 11, 2016 @05:33AM (#11673825)
A classic problem is code like this:

    printf("a=%p *a=%d", a, *a);
    if (a == NULL) return;
An optimizing compiler will likely remove the NULL check completely because the printf above it has undefined behavior if a is NULL.

There are no comments on this comment yet.