News for hackers. Stuff that matters.
[deleted]
Re:Why 1 && 2 == 2 by cldr on Friday July 19, 2013 @12:44AM (#6068370)
Well, there is a difference between "format specifier" and "format string". The first argument to printf is the format string, the `%d` and `%s` type things are the format specifiers. I was talking about this

    printf("Hi", 45);
which will not segfault. If you meant

    printf(45);
Then you are absolutely correct, that would segfault on common machines.
Re:Why 1 && 2 == 2 by Danieru on Friday July 19, 2013 @01:00AM (#6068412)
I think that must be it. And it makes perfect sense how he would hit it. Example: http://ideone.com/MilaUN
Re:Why 1 && 2 == 2 by comex on Friday July 19, 2013 @12:59AM (#6068409)
Deleted my comment because you are, of course, correct. (However, I do suspect rayiner was referring to omitting the format string.)
Re:Why 1 && 2 == 2 by cldr on Friday July 19, 2013 @01:01AM (#6068414)
I think so too, I just have bad reading comprehension and should have known but didn't.