# What does int argc, char *argv[] mean in C/C++?

CC++Server Side ProgrammingProgramming

argc stands for argument count and argv stands for argument values. These are variables passed to the main function when it starts executing. When we run a program we can give arguments to that program like −

## Output

This will give the output −

This program has 3 arguments

C:\Users\user\Desktop\hello.exe
hello
people

Note that the first argument is always the location of the executable executing.

Published on 28-Feb-2018 10:13:13