Which of the following gives the name of the program if the second parameter to the main fucntion is char **argv?

a) argv[3]
b) argv[1]
c) argv[0]
d) argv[2]

1 thought on “Which of the following gives the name of the program if the second parameter to the main fucntion is char **argv?”

  1. c
    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].

Leave a Comment