31_args.c 263 B

123456789101112131415
  1. #include <stdio.h>
  2. int main(int argc, char **argv)
  3. {
  4. int Count;
  5. printf("hello world %d\n", argc);
  6. for (Count = 1; Count < argc; Count++)
  7. printf("arg %d: %s\n", Count, argv[Count]);
  8. return 0;
  9. }
  10. /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/