What is the time complexity of accessing an element in an array using its index?
Options
- A. O(n)
- B. O(log n)
- C. O(1)
- D. More than one of the above
- E. None of the above
Quiz Practice:
C. O(1)
Correct Answer: C. O(1)
Explanation: Array elements can be accessed directly using their index.