Created
April 17, 2021 20:29
-
-
Save tkoz0/8adecc785d024b122ca013a4bd0c23bd to your computer and use it in GitHub Desktop.
C program for printing command line args / arguments
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