Question discussion

Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?

311033Medium 1 reply 661 views
0
Which of the following correctly accesses the seventh element stored in arr, an array with 100 elements?
  • Aarr[6]
  • Barr[7]
  • Carr{6}
  • Darr{7}
  • ENone of these
Correct answer: A

Discussion 1

0
CCommunity
arr[6]

Array index always starts with 0.