Hacker News new | past | comments | ask | show | jobs | submit login

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.)




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.


That's funny, I added the include for stdlib so couldn't find the issue with the malloc one.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: