Arguments in main

I wanted to know that why we have given arguments to the main function in this code and where are they getting used.

int argc,char const *argvc[] are used to take input from command line. These are command line arguments.
while executing the c/c++ program,
./a.out --insert inputs here–
where argc would store the count of arguments, and argcv[] would contain the arguments,
You can use them in your code as well.
for example:
./a.out 45
in your c program : int a = atoi(argv[1]); a would contain 45

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

if i run the program without these it will still run right?