Computer Science, asked by harshitadas433, 10 months ago

What are command line arguments? Explain.

Answers

Answered by sarazeb8989
1

The integer, argc is the argument count. It is the number of arguments passed into the program from the command line, including the name of the program. The array of character pointers is the listing of all the arguments. argv[0] is the name of the program, or an empty string if the name is not available.

Answered by Shamsessa123
0

Answer:

Properties of Command Line Arguments:

i) They are passed to the main() function.

ii) They are parameters/arguments supplied to the program when it is invoked.

iii) They are used to control programs from outside instead of hard coding those values inside the code.

iv) argv[argc] is a NULL pointer.

v) argv[0] holds the name of the program.

Explanation:

Similar questions