News for hackers. Stuff that matters.
Re:C puzzles by mnay on Friday November 11, 2016 @12:04AM (#12928060)
The code in question violates the newer C standards (C99, C11). For instance, it doesn't even compile using "gcc -std=c99 -pedantic-errors".

In the older C standard (C89), the code has undefined behaviour because implicit declaration of the function malloc is not compatible with its definition in the standard library. It is a futile task to try to define the undefined.

There are no comments on this comment yet.