Defect Report #083

Submission Date: 03 Dec 93
Submittor: WG14
Source: Clive Feather
Question
Item 20 - use of library functions
Consider the following program:
#include <stdio.h>

int main (void)
{
printf ("%d\n", 42.0);
return 0;
}

This program clearly should have undefined behavior, but I can find no wording which states so.
Correction
In subclause 7.1.7, page 99, insert after the words in parentheses in the second sentence of the first paragraph:
or a type (after promotion) not expected by a function with variable number of arguments
Previous Defect Report < - > Next Defect Report