Write a note on Command Line Argument.
Answers
Answered by
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
English,
6 months ago
Physics,
6 months ago
Math,
6 months ago
Science,
1 year ago
India Languages,
1 year ago