Skip to content

Instantly share code, notes, and snippets.

@packmad
Created November 8, 2016 17:52
Show Gist options
  • Save packmad/a367d0cb003cbe4a1ca90634af85d5c1 to your computer and use it in GitHub Desktop.
Save packmad/a367d0cb003cbe4a1ca90634af85d5c1 to your computer and use it in GitHub Desktop.
Print argvector
#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