Which of the following is not true in case of command line arguments?A. The argc parameter is used to hold the number of arguments in the command line and is an integerB. The argv parameter is a pointer to an array of a character pointer and each one points to command line argumentsC. The argv[1] always point to program nameD. None of above

C

This question is related to Oracle Interview

Showing Answers 1 - 1 of 1 Answers

Yes, the argc[] parameter contains an integer i.e. used to hold the number of argumnets in the command line.

char*argv[] is used as a pointer to an array of a character pointer and points to the command-line arguments.

This now also argv[0] contains the program name:
and    argv[1]  refers to the first command line,argv[2],the second and so-on.

Thus the answer: C:untrue-statement.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions