← 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?
- A.Creates a new Student variable
- B.Lets you write Student instead of struct Student as the type name
- C.Copies the struct's members into a new struct
- 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 →