when an array is passed to a method, what does the method receive?
the solution site, which is interested in answering educational questions, as it provides an answer to your questions in all areas and undergraduate majors Students’ activities and research and crossword puzzles
The solution site is concerned with questions, answers and solutions for all study materials for all educational stages
on the solution site, you can ask your doubts, curiosity, questions and whatever going on in your mind either related to studies or others. Experts and people from different fields will answer.
Through the word “Ask a Question” in the solution site, you can ask any topic or any question or inquiry you want answered by teachers specialized
to solving questions and educational and academic activities that you ask
Now let’s answer your question
when an array is passed to a method, what does the method receive?
answer :
When we pass an array to a method as an argument, actually the address of the array in the memory is passed (reference). Therefore, any changes to this array in the method will affect the array