Ask Question

A single dimensional array can be declared as int a[10] or int a[] = {1, 2, 3, 4}. It means specifying the number of elements is optional in 1-D array. Given the array above, which statement would change the fifth element to equal 1? void function () { ... }

1) a[3] = 23;

2) a[1] = 1;

3) a[5] = 1;

4) a[5] = 6;

5) a[10] = 5

+5
Answers (2)
  1. 31 March, 16:45
    0
    1) a[3] = 23 is the correct answer
  2. 31 March, 16:50
    0
    The answer is (3)

    Explanation:

    Just did the test
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A single dimensional array can be declared as int a[10] or int a[] = {1, 2, 3, 4}. It means specifying the number of elements is optional ...” 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