To use command line arguments in C++, how many parameters are passed to the main function?
Answer: B
2 arguments are needed to be passed to main() function while using command line arguments. The first one represents a number of strings in the argument list and the second list represents the list of string arguments.