If I have this:
int main(int argc, char *argv[])
In the body, you can sometimes find programs using argv[1].
argv[1]
When do w
as argv[0] is filepath of the program itself. Extra command line parameters are in further indexes, argv[1],argv[2].. You can read more here : http://www.site.uottawa.ca/~lucia/courses/2131-05/labs/Lab3/CommandLineArguments.html