Skip to content

Glossary: C Basics

argc and argv

Also written: argc, argv

The two parameters of `int main(int argc, char *argv[])`. argc counts the words typed on the command line, and argv holds them as strings, with the program's name in argv[0].

Where the book teaches it

Related terms

Command-line argumentsStandard streams