C Programming - Command Line Arguments - Discussion
Discussion Forum : Command Line Arguments - General Questions (Q.No. 1)
1.
The maximum combined length of the command-line arguments including the spaces between adjacent arguments is
Discussion:
18 comments Page 1 of 2.
Rashmi said:
1 decade ago
Because command prompt depend on the Operating System (OS) and when OS change then the value of the command line argument changes.
Preetam jadakar said:
1 decade ago
How to understand the which os offers which specification for cammand pompt?
Rajesh said:
1 decade ago
Command line arguments means?
Prathima said:
1 decade ago
main() function takes two arguments i.e main(int argc, char *argv[])
Here argc is the argument count and argv is a argument vector(argv is a array of pointers).
In DOS environment, maximum length is 128 characters. But the question is for all OS. So it may vary from OS to other OS.
Here argc is the argument count and argv is a argument vector(argv is a array of pointers).
In DOS environment, maximum length is 128 characters. But the question is for all OS. So it may vary from OS to other OS.
Vijay said:
1 decade ago
Its right
In DOS environment,maximum length is 128 characters.
& it vary according to os to os.
In DOS environment,maximum length is 128 characters.
& it vary according to os to os.
Naresh said:
1 decade ago
It is possible to pass arguments to C programs when they are executed. The brackets which follow main are used for this purpose. argc refers to the number of arguments passed
Rathika.b said:
1 decade ago
Then what about the meaning of /*......*/ and //???
These also command-line arguments ah??
These also command-line arguments ah??
Sidheshwar kacharde said:
1 decade ago
It's right it's depend on OS.
Parvesh kumar said:
1 decade ago
What is the use of command line argument and how can I use it ?
Kumarreddy said:
1 decade ago
Give brief discussion on command line arguments comparing with different os.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers