Google News
logo
CPP - Quiz(MCQ)
Which of the following gives the name of the program if the second parameter to the main fucntion is char **argv?
A)
argv[0]
B)
argv[1]
C)
argv[2]
D)
argv[3]

Correct Answer :   argv[0]


Explanation : The first string in the list of command line arguments represents the name of the program which can be accessed by using argv[0].

Advertisement