1.

What does the first parameter of the main function represent?(a) Number of command line arguments(b) List of command line arguments(c) Dictionary of command line arguments(d) Stack of command line argumentsThe question was asked during an online interview.The question is from Command Line Arguments topic in section C++ Advanced of C++

Answer»

The correct answer is (a) Number of command LINE arguments

The explanation is: The FIRST ARGUMENT of the main() function REPRESENTS the number of command line arguments that are PASSED.



Discussion

No Comment Found

Related InterviewSolutions