C Programming - Command Line Arguments - Discussion
Discussion Forum : Command Line Arguments - General Questions (Q.No. 3)
3.
What do the 'c' and 'v' in argv stands for?
Discussion:
9 comments Page 1 of 1.
Suji shri said:
1 decade ago
Command-line arguments are given after the name of a program in command-line OS like DOS or Linux, and are passed in to the program from the OS. To use command line arguments in your program, you must understand the full declaration of the main(), which previously has accepted no arguments.
Niraj said:
1 decade ago
argc -----number of argument.
argv------argument
if u run the program as "prog a b c"
argc==4
argv[0]=prog(executable file)
argv[1]=a
and so on.......
argv------argument
if u run the program as "prog a b c"
argc==4
argv[0]=prog(executable file)
argv[1]=a
and so on.......
Msquarme said:
1 decade ago
This is not true for such programming and will not support the ansi c programming language.
Ajay said:
1 decade ago
How can you say that the command line argv & argc are stand for this type of answer?
Pravin said:
1 decade ago
Will you please provide the elaboration of Command Line Argument with Suitable Ex?
Ranjith karthick said:
1 decade ago
What is the necessity to use command line arguments in C?
Diwakar said:
1 decade ago
Tell me about command line argument.
Shailja said:
1 decade ago
Tell me about command line argument.
Vinod thete said:
1 decade ago
What is the use of argc and argv?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers