Created
December 25, 2013 22:49
-
-
Save marcoscastro/8127689 to your computer and use it in GitHub Desktop.
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[]) | |
{ | |
if(argc > 1) | |
{ | |
printf("Argumentos passados:\n"); | |
int i; | |
for(i = 1; i < argc; i++) | |
printf("%s\n", argv[i]); | |
} | |
else | |
printf("Nao passou argumentos!\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment