Skip to content

Instantly share code, notes, and snippets.

@kylelk
Created August 29, 2013 04:57
Show Gist options
  • Save kylelk/6374408 to your computer and use it in GitHub Desktop.
Save kylelk/6374408 to your computer and use it in GitHub Desktop.
command line arguments
#include <stdio.h>
main(int argc, char *argv[])
{
int c;
printf("Number of command line arguments passed: %d\n", argc);
for (c = 0; c < argc; c++)
printf("%d. Command line argument passed is %s\n", c + 1, argv[c]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment