what do the 'c' and 'v' in argc and argv stand for?



what do the 'c' and 'v' in argc and argv stand for?..

Answer / Ravi Shekhar Rai

'c' stands for command line count, which is the number of arguments passed to the program. 'n'v' stands for vector of character pointers, where each pointer points to a command-line argument (including the program name).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail

6 Answers   TCS,


10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning

5 Answers   Accenture,


Write a program for deleting duplicate elements in an array

3 Answers   Subex,


How can you be sure that a program follows the ANSI C standard?

1 Answers   Aspire, Infogain,


How can I find out how much free space is available on disk?

1 Answers  


What are the different types of control structures in programming?

1 Answers  


How do you generate random numbers in C?

1 Answers  


what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??

5 Answers  


Write the Program to reverse a string using pointers.

1 Answers   InterGraph,


What is the use of a semicolon (;) at the end of every program statement?

2 Answers  


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

1 Answers   Subex,


When should the register modifier be used? Does it really help?

1 Answers  


Categories