123456789101112131415 |
- /* badcount.c -- incorrect argument counts */
- #include <stdio.h>
- int main(void)
- {
- int n = 4;
- int m = 5;
- float f = 7.0f;
- float g = 8.0f;
-
- printf("%d\n", n, m); /* too many arguments */
- printf("%d %d %d\n", n); /* too few arguments */
- printf("%d %d\n", f, g); /* wrong kind of values */
-
- return 0;
- }
|