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
char P[100]; double X=533.8*22500; sprintf(P,"%f %u",X,(unsigned int)X); MessageBox(P,"SSS"); //12010500.000 12010499

Problem #1: plugging the memory leak. When you employ the "normal" new operator, for example Foo* p = new Foo(), the compiler generates some special code to manage the case while t

MAT LAB programming Project Description: Just for who are PROFESSIONAL IN MATLAB i have simulation and i would like to simulate the equation in ,and test the all simulatio

i want software to calculate heating or use thermodynamic equation , pleas help me

Project Description: We want to generate premium numbers for one of our application. What we need is: A program that generate 2, 3, 4, 5, 6, 7, 8 digits premium numbers

At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers

What are control structures? - Control structures decide which instructions in program must be executed. - This implies that program flow may not necessarily move from one s

Prepare a MT4 EA to clone MT4 Trades to a Binary Options Platform Project Description: I want an EA that clones MT4 Trades to Globaltrader365, GT Options and if possible othe

Queue - C++ program: Write a program to show the basic operations on queue. namespace stack {  const int max_size = 200;  char v(max_size);  int top=0;  void pu

Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.