1. Home
  2. Computer Science MCQs
  3. C Programming
  4. In an expression, what does the name of an array decay into?

Added 30 Nov -0001

In an expression, what does the name of an array decay into?

  1. A pointer to its first element Correct answer
  2. A pointer to its last element
  3. A copy of the entire array
  4. The count of its elements

Correct answer

A. A pointer to its first element

13 views

MCQSEXAM

Explanation

Except as the operand of sizeof or the address operator, an array name decays to a pointer to its first element.

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