badcount.c 346 B

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