What is the reason for using an array as a parameter in the main method?
Explanation
The main method uses an array parameter because it can hold multiple values, such as command-line arguments, enabling the program to process several inputs.
The main method uses an array parameter because it can hold multiple values, such as command-line arguments, enabling the program to process several inputs.