Ask Question
27 November, 23:53

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

+2
Answers (1)
  1. 28 November, 00:23
    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 & 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