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
program that generate university statistical bar graph using 3d function


A: Provided that function parameter is "const reference", compiler create temporary variable in following two ways. a) The actual argument is the correct type, however it isn't

Problems With Multiple Inheritance The following example presents a problem with multiple inheritance. class Aclass  {   public :  void put()

Both malloc & new functions are utilized for dynamic memory allocations & the basic difference is: malloc need a special "typecasting" while it allocates memory for eg. if the poin

steric in square


overload assignment opertor to assign the data of one object to anthor

why is programming is needed now-a-days.what is the benefit of colleges to apply heavy loads on students head.

WHAT IS A C LANGUAGE? C IS A PROGRAMMING?