Ask Question
17 November, 00:28

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

+2
Answers (2)
  1. 17 November, 02:03
    0
    The answer is (3)

    Explanation:

    Just did the test
  2. 17 November, 02:54
    0
    1) a[3] = 23 is the correct answer
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 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