Computer Science, asked by Rishijain7225, 1 year ago

What is command line argument?

Answers

Answered by Anonymous
0

Command line argument is a parameter supplied to the program when it is invoked.

Answered by blinkarmy19
1

It is the parameter supplied to the program when it is invoked.

This means that only when you want the parameter only then it supplies it to you.

For example,

class Prog1

{

void main(int a, int b)

Here the integer values in the brackets are the parameters.

When you write the program and execute it, before the terminal screen appears there is a dialogue box which asks you to input the values of 'a' and 'b'.

By entering the values, you are invoking the parameter that you have supplied.

Similar questions