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
which will not segfault. If you meant
Then you are absolutely correct, that would segfault on common machines.
[ Parent
| on HN ]
I think that must be it. And it makes perfect sense how he would hit it. Example: http://ideone.com/MilaUN
Deleted my comment because you are, of course, correct. (However, I do suspect rayiner was referring to omitting the format string.)