144k views
4 votes
Which is true about arrays and methods? Group of answer choices Arrays cannot be passed to methods An array is passed to a method as a reference Passing an array to a method creates a copy of the array within the method A programmer must make a copy of an array before passing the array to a method

1 Answer

5 votes

Answer:

Correct option is: Arrays are passed to methods by reference.

Step-by-step explanation:

Arrays are passed to methods by reference. This means that if the content of the array is changed in a method, the change will be reflected in the calling method.

User Debarshi
by
5.6k points