News for hackers. Stuff that matters.
Re:C Puzzles by kazinator on Tuesday June 23, 2015 @12:49AM (#9762682)
Anyone else spot the uninitialized variable in the banner program?

Also:

> What's the output of the following program. (No, it's not 10!!!)

What's the point of including a program that calls malloc without including a prototype for it, after asking the reader earlier answer why such a program segfaults on IA-64 but not IA-32?

(The answer is: a constraint is violated, requiring a diagnostic, because an int * object pointer is assigned the return value of malloc whose implicit declaration marks it as returning int. The comment issue is a red herring.)

Re:C Puzzles by brown-dragon on Tuesday June 23, 2015 @01:27AM (#9762778)
I can't figure out why is it checking `pr` in the while loop. Perhaps it's simply been left over from an earlier version.
Re:C Puzzles by kmill on Tuesday June 23, 2015 @02:23AM (#9762927)
That's funny, I added the include for stdlib so couldn't find the issue with the malloc one.