Описание тега argv
Argument vector containing the arguments passed in from the command line when starting a program. Used in the main method, in conjunction with argc.
Argv stands for arguments vector, and represents the arguments given to the program, or main, in a command-line. It is used in conjunction with argc, the number of arguments given to a program.
Keep in mind that the first value in argv contains the program name.
Example usage:
int main(int argc, char **argv) {
/* Some code involving command-line arguments from argv */
}
Notable stackru questions: