17.1k views
4 votes
Code a call to the function anotherFunc passing the array myints.

a)anotherFunc(myints []);

b)anotherFunc(int myints);

c)anotherFunc(myints &);

d)anotherFunc(myints);

1 Answer

3 votes

Answer:

d)anotherFunc(myints);

Step-by-step explanation:

When we call a function we just have to pass the names of the arguments to the function.In case of arrays we also just have to pass the name of the array.We don't have to worry about the square brackets.So the function call will be like this.

anotherFunc(myints);

Hence the answer is option d.

User Nick Ager
by
7.4k points