Explain the command line parameters, C/C++ Programming

Explain the Command Line Parameters?

The Command line arguments are parameters supplied to a program from the operating system. These arguments are parameters accepted to main function from the operating system. Most versions of C programming permit two such arguments which are called argv and argc, respectively. The argc must be an integer type variable and the argv is an array of pointers to characters that is the array of strings. Every string in this array will represent a parameter that is passed to main. The value of argc will point to the number of parameters passed.

The universal form of main function will be in the form:

main (int argc, char *argv[ ] )

A program execution is detained by specifying the name of the program within a menu-driven environment. Some compilers as well permit s program to be executed by specifying the name of the program at the operating system level. The name is after that interpreted as an operating system command. Therefore the line in which it appears is generally referred to as a command line. 

Posted Date: 6/14/2013 1:57:23 AM | Location : United States

Related Discussions:- Explain the command line parameters, Assignment Help, Ask Question on Explain the command line parameters, Get Answer, Expert's Help, Explain the command line parameters Discussions

Write discussion on Explain the command line parameters
Your posts are moderated
Related Questions
A: auto: the default. Variables are created and initialized automatically while they are defined and destroyed at the ending of the block containing their definition. They are not

I have a program and I want someone to fix it for me by using basic c language program.

Describe what is actual arguments? - When certain functions are created and used to perform an action on some provided values, some values are required to be passed to them. Th

You are to write a C++ program which will compute the gross pay, Social Security Tax, Income Tax and net pay for an employee. The program needs to prompt for and read the employ

c-program to find the area under the curve y=f(x) between x=a and x=b integrate y=f(x) between the limits of a and b   #include float start_point, /

Q: When should you employ multiple inheritance? A:There  are  three  acceptable  answers:-  "Rarely," "Never," and  "while  the  problem  domain cannot be modeled accurately any

i need amibroker afl to dll plugin

C program to print fibonacci series: int fibo(long int); void main() {                 long int a=0,n;                 printf ("how many terms\n");

E x p r e s sion and their types: An expression will be in form of mathematical expression with C++ syntax embedded with it. Expressions are of following types which m

Define the Self-Referential Structures? It is occasionally desirable to include within a structure one member that is a pointer to the parent structure type. Generally in terms