#include <stdio.h> 
     #include <stdlib.h> 
     main(int argc, char *argv[], char *env[]) 
     { 
          int i; 
          printf("These are the %d  command- line  arguments passed  to  main:\n\n", argc); 
          for(i=0; i<=argc; i++) 
            printf("argv[%d]:%s\n", i, argv[i]); 
          printf("\nThe environment string(s)on this system are:\n\n"); 
          for(i=0; env[i]!=NULL; i++) 
               printf(" env[%d]:%s\n", i, env[i]); 
     } 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2021-11-04
猜你喜欢
  • 2021-09-12
  • 2021-10-04
  • 2021-09-25
  • 2022-12-23
  • 2021-08-03
  • 2021-09-13
  • 2021-05-23
相关资源
相似解决方案