Practice mode C Language

In C, what is the index of the first element of an array?

Correct answer D. 0

Explanation

C arrays are zero-indexed, so the first element is arr[0] and the last element of an array of size n is arr[n-1].

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.