Ask Question
10 October, 13:13

How can the function anotherFunc change the contents of the second element of myints?

a) myints[2] = something

b) * myints [2] = something

c) myints [2] = & something

d) myints [1] = something

+5
Answers (1)
  1. 10 October, 15:16
    0
    d) myints [1] = something.

    Explanation:

    The elements in the array are stored serially. Every element in the array is indexed and the indexing start form 0 to size-1. So to access the second element in the array it's index will be 1. So to access the second element we have to write arrayname[1];

    In our case the name of the array is myints.

    Hence the answer is myints[1]=something
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “How can the function anotherFunc change the contents of the second element of myints? a) myints[2] = something b) * myints [2] = something ...” 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