1. Home
  2. Computer Science MCQs
  3. C Programming
  4. What does typedef do when applied to a struct name?

Added 30 Nov -0001

What does typedef do when applied to a struct name?

  1. It allocates memory for the type
  2. It makes every member static
  3. It blocks copying of the struct
  4. It creates an alias for the type Correct answer

Correct answer

D. It creates an alias for the type

14 views

MCQSEXAM

Explanation

typedef only introduces another name for an existing type; it allocates no storage at all.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

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