Created
April 29, 2017 15:16
-
-
Save samueltcsantos/d9c89ac5d8d5a991b5a06c93fa254428 to your computer and use it in GitHub Desktop.
How to read arguments from command line.
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){ | |
for (int i=0; i < argc; ++i) | |
{ | |
printf("argv[%d]: %s \n", i, argv[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment