Skip to content

Instantly share code, notes, and snippets.

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