🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Structures and Unions: all 10 questions

Quiz: Structures and Unions · Question 9 of 10

What does typedef struct Student Student; do?

What does typedef struct Student Student; do?

  1. A.Creates a new Student variable
  2. B.Lets you write Student instead of struct Student as the type name
  3. C.Copies the struct's members into a new struct
  4. D.Makes the struct's members private
Answer & explanation

Correct answer: Lets you write Student instead of struct Student as the type name

typedef creates another name for an existing type; it does not create a new type or variable.

Can you get the rest right without peeking?

Take the timed Quiz: Structures and Unions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →