-
-
Save ShakibHabibi/532d9810346c634ca0f45b154905e51e 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 == 2 ) { | |
printf("The argument supplied is %s\n", argv[1]); | |
} | |
else if( argc > 2 ) { | |
printf("Too many arguments supplied.\n"); | |
} | |
else { | |
printf("One argument expected.\n"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment