Vidyalelo
C Programming · Q58

Arrays and Strings

Programming · C Programming · question 58

Q58

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

A.
arr[6]
Answer
B.
arr[7]
C.
arr{6}
D.
arr{7}
E.
None of these

Answer: Option A

Solution

Answer: Option A
Solution:

Array index always starts with 0.