TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  7.19.e

Synopsis:The number of arguments to printf formats should correspond to the actual arguments.
Language:C
Severity Level:1
Category:Library


Description:

Justification

Execution leads to undefined results when the number of output specifiers and arguments do not match.

Example

printf("There are %d people in total", people, total); /* WRONG */