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

Respuesta :

Answer:

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.