Ask Question
20 August, 12:27

A method that has the signature void m (int[] ar) : A. can change the values in the array ar

B. cannot change the values in the array ar

C. can only change copies of each of the elements in the array ar

D. None of these

+1
Answers (1)
  1. 20 August, 14:59
    0
    A : can change value in the array Ar

    Explanation:

    void m (int[] ar) is the declaration of an array

    In this given line we declare an array

    int [] ar; / / declaration of array

    Basically array declaration has two component : array's type and array's name. Where [] is array type and where in is data type of elements within array. All the element in the array is always considered as integer data type. This line in the code assume that it hold integer data.

    for example

    int [5] ar;

    it mean that

    { 1,2,3,4,5} it has 5 elements but different value

    so option has been meet the requirement of the given program line.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “A method that has the signature void m (int[] ar) : A. can change the values in the array ar B. cannot change the values in the array ar C. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers