Computer Science, asked by Akaahdeep2510, 1 year ago

Write a note on Command Line Argument.

Answers

Answered by akmalkhalid2003
1

Properties of Command Line Arguments:

i) They are passed to main() function.

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

iii) They are used to control program 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.

Similar questions