1. Home
  2. Computer Science MCQs
  3. C Programming
  4. The subscript expression a[i] is defined as equivalent to…

Added 30 Nov -0001

The subscript expression a[i] is defined as equivalent to which form?

  1. a + i
  2. *(a + i) Correct answer
  3. *(a + i * 4)
  4. &a[i]

Correct answer

B. *(a + i)

15 views

MCQSEXAM

Explanation

The standard defines a[i] as *(a + i), since pointer arithmetic already scales by the element size.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? 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