Ask Question
20 September, 10:35

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

+2
Answers (1)
  1. 20 September, 10:53
    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 & 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