answersLogoWhite

0


Best Answer

Command line arguments are provided at the time of running the program. Example: Suppose that your program needs input name and its value then running it from commandline(DOS prompt) you provide the values after the program name java xyz name JAX(name is name and value is jax)

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

For example in "DEL *.*", "DEL" is the command, "*.*" is the argument.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

the commands are given at compile time not in the program.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a command argument?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you get the number of argument from command line?

It is very difficult task.but I will manage it by deep thinking on on the issue.


Please someone explain you command line argument in C?

Command Line Arguments---- I am trying to explain each word one by oneCommand ------perform specific taskex. When CMD is typed in run window and then press ok button then open a black screen that is called command prompt.Command Line ------on command prompt where command is supplied that is called command line.using command prompt dos commands are executed and java program is also executed using command prompt.for executing java program command is supplied with given syntaxjava java_class_name argument1 argument2.........Java--- is a commandjava_class_name ---name of java file which you want to executeargument1 argument2 --- are the values passing to java application from out sidethese argument1 argument2 are stored in string array argument of main method


Write a programme to perform binary operations on integer argument The arguments and operators should be accepted using command line parameters?

There are many different operators, which are you referring to?


What is the work of argc and argv in c program?

The argc and argv identifiers in a (standardly declared) main function allow access to the command line arguments. The standard declaration is... int main (int argc, char *argv[]) ...or... int main (int argc, char **argv) The number of arguments is stored in argc. Since the name of the program is, by convention, always implicitly the first argument, then argc is always at least 1, even if there are no arguments. Each argument, then, is stored in argc[i], where i ranges from 0 to argc-1. The name of the program is stored at argv[0], and further arguments are argv[1], argv[2], etc. Normal convention is that each white space separated word on the command line is an argument. The exception is in the case of a quoted argument, in which case the entire quoted string, minus the quotes, is a single argument. Is is an error to attempt to write to any argument. If parsing by side effect parsers, such as with strtok(), is to be done, a copy of the argument must be made.


What happens if the argument to exec is not executable?

If command is not specified, a non-interactive shell exits, unless the shell option exefail is enabled, in which case if returns failure. Returns if file cannot be executed.

Related questions

What reflects an accurate argument in favor of a command economy?

Which statement reflects an accurate argument in favor of a command economy


Command line argument?

Command line argument is a value that is passed to a program whenever the program is executed. It is used to avoid hard coding.


What argument is most accepted by command economies?

Fair


What command would you issue from a command prompt to see a listing of the computers in your workgroup?

"net view" is the command and argument, with "net" being the command and "view" being the argument to view computers within your network, domain, or workgroup. As always, type it without the quotations.


What to do when you have a bad argument?

I want to answer the question of linux command , what is the meaning of the tip " bad argument "peg" " in linux system ?


How you can got the first character of an argument in command line argument in java?

in your code u always write public static void main(String args[]) { //here array args will hold the command line arguments. Indexing from zero for //first argument //with substring(args[0],1) u can get 1st char of first argument. }


Where do you find the netsh command menu on windows 2008 server?

'netsh' is a CLI command. It doesn't really have a 'menu'. You can have it list its options by using the /? argument to the command, such as 'netsh /?'


What is the length command line argument in character?

Use the function strlen(string);


The most accepted argument in favor of market economies is their efficiency The argument most accepted in favor of command economies is the belief that they are?

More Traditional


How do you get the number of argument from command line?

It is very difficult task.but I will manage it by deep thinking on on the issue.


What variable will capture the content of the argument passed to a script at the command line?

If you read your book, you will find the answer!


What variable will capture the contents of the second argument passed to a script at the command line?

If you read your book, you will find the answer!