1. Home
  2. Computer Science MCQs
  3. C Programming
  4. The index of the first element of an array in C is:

Added 30 Nov -0001

The index of the first element of an array in C is:

  1. 0 Correct answer
  2. 1
  3. −1
  4. the array name

Correct answer

A. 0

17 views

MCQSEXAM

Explanation

C arrays are zero-indexed, so the first element is a[0].

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C Programming MCQs

Practise all C Programming MCQs

Similar MCQs