Machine-translated by Google. Questions are authored in English.
Top

Discussion

To use command line arguments in C++, how many parameters are passed to the main function?

  • A.1
  • B.2
  • C.3
  • D.4

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.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.