Categories
C

What is Command Line Argument in C

COMMAND LINE ARGUMENT:- Command line argument in C is a mechanism by which a program takes input during runtime. The main function takes two parameters in a command line argument such as Argument Counter:- It counts the number of argument on the command line. Argument Vector:- Is a pointer array which points to each argument […]

Categories
Core JAVA

What is Command-Line Argument in java?

Command-line Argument Command-line argumentĀ is a method which user will give inputs through the console(command prompt) using commands.The argument accepted by main method is known as command line argument. The main method of java only access array of string as an argument. The argument passed from the console can be received in the JAVA program and […]