Ask Question
1 November, 06:52

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. 1 November, 09:07
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers