fork download
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char **argv)
  4. {
  5. for (int i = 0; i < argc; ++i) {
  6. printf("[%d] => %s\n", i, argv[i]);
  7. }
  8. return 0;
  9.  
  10. }
  11.  
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
[0] => ./prog