The number of arguments given to the program, found as a parameter to main in some languages, notably C.

Argc stands for argument count, and represents the number of arguments given to the program, or main, in a command-line. It is used in conjunction with argv.

Keep in mind that argc also counts the program name.

Notable stackru questions: