Ask Question
8 December, 05:22

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

+3
Answers (1)
  1. 8 December, 06:23
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers