Created
November 8, 2016 17:52
-
-
Save packmad/a367d0cb003cbe4a1ca90634af85d5c1 to your computer and use it in GitHub Desktop.
Print argvector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (int argc, char *argv[]) | |
{ | |
int i; | |
for(i=0;i<argc;i++) { | |
printf("%d %s\n", i, argv[i]); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment