The index of the first element of an array in C is:
-
A
0
Correct answer
-
B
1
-
C
−1
-
D
the array name
17 views
Explanation
C arrays are zero-indexed, so the first element is a[0].
Reference
Asked in: NTS, PPSC IT, Campus Interviews
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ