printf format string
Joe Buck
jbuck@synopsys.COM
Tue Aug 31 23:20:00 GMT 1999
> What is the expected output if an argument does not have the appropriate
> types for the string format specified?
A program crash may occur in many cases; in other cases garbage is
printed.
> Is the argument just cast into the correct format, with casting rules
> applied? Or is the output undefined in some cases?
No, no casts occur, because the compiler does not attempt to read and
interpret the format string.
More information about the Gcc
mailing list