6 ms·
Is that allowed by the standard? (Passing a parameter to `printf` but not referencing it, in the non-"%d\n" case?)
by heinrich5991 12y ago
Is that allowed by the standard? (Passing a parameter to `printf` but not referencing it, in the non-"%d\n" case?)
- kps 12y agoC11 §7.21.6.1 If the format is exhausted while arguments remain, the excess arguments are evaluated (as always) but are otherwise ignored. but that's just a consequence of stdarg, which does not require all supplied arguments to be consumed.