Correct Answer : To initialize the data members of an object when it is created
Explanation : A constructor is used in classes to initialize data members of class in order to avoid errors/segmentation faults.
Correct Answer : All of the above
Explanation : Any of the above signature can be used while using command line arguments in C++ programs
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].
Correct Answer : Number of command line arguments
Explanation : The first argument of the main() function represents the number of command line arguments that are passed.