Ask Question
24 February, 20:13

If you pass the array ar to the method m () like this, m (ar); the element ar[0]:

A. will be changed by the method m ()

B. cannot be changed by the method m ()

C. may be changed by the method m (), but not necessarily

D. None of these

+5
Answers (1)
  1. 24 February, 20:38
    0
    Answer: (B)

    Explanation:

    Any changes on array made inside the function m () will only affect the ar[] present inside the function that means its scope is only within the function. The original array ar[] outside the fuction's scope won't change.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “If you pass the array ar to the method m () like this, m (ar); the element ar[0]: A. will be changed by the method m () B. cannot be ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers