When you pass an array to a method, the method receives ________ .
A.A copy of the array.
B.A copy of the first element.
C.The reference of the array.
D.The length of the array.
Answers
Answered by
4
Hello mate
here's your answer
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Option C✔✔
The reference of the array.
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
here's your answer
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Option C✔✔
The reference of the array.
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
Hope it helps you
Answered by
0
The reference of the array.
Explanation:
- When sending an array to a method, the method receives the array's reference.
- The array reference is returned when a method returns an array.
- Arrays are provided to methods in the same way that regular variables are.
- When we send an array as a parameter to a method, we are actually passing the memory location of the array (reference).
- As a result, any modifications made to this array in the function will have an impact on the array.
Similar questions
Physics,
6 months ago
Math,
6 months ago
Business Studies,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
English,
1 year ago
Political Science,
1 year ago