Ask Question
29 December, 14:22

In the following method call, which argument is an array?

myObject. some_method (x, y, 3);

a) x is an array

b) y is an array

c) both x and y are arrays

d) neither x nor y is an array

e) can't say without seeing more code

+2
Answers (1)
  1. 29 December, 14:31
    0
    can't say without seeing more code

    Explanation:

    In the function calling, we pass the name of array, variable and direct value as well.

    for example:

    int y=3;

    int x[] = {1,2,3,4};

    fun (y, x);

    so, we can't tell which is variable and which is array, without seeing the rest of code.

    we can tell by seeing the initializing variable and function declaration or create function.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “In the following method call, which argument is an array? myObject. some_method (x, y, 3); a) x is an array b) y is an array c) both x and ...” 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