--:--









Quiz for typedef keyword

Course: C Language | Subject: Unit 7 | Topic: Structures and Unions



Logo

Q1: What is the purpose of the typedef keyword in C?

Logo

Q2: How do you use typedef to define "Student" as alias for struct student?

Logo

Q3: After typedef, how do you declare a variable of type Student?

Logo

Q4: Can typedef be used with pointers?

Logo

Q5: Which typedef declaration creates a pointer alias "IntPtr" to int?

Logo

Q6: What is the benefit of using typedef for complex types?

Logo

Q7: Can typedef define an alias for arrays?

Logo

Q8: Which of these typedef declarations is correct for an array of 10 ints?

Logo

Q9: How to typedef a function pointer "FuncPtr" that takes int and returns void?

Logo

Q10: Is typedef creating new types or aliases?

Logo

Q11: Can typedef be combined with struct declaration?

Logo

Q12: What does this code do? "typedef struct { int x; int y; } Point;"

Logo

Q13: Can typedef be used for enums?

Logo

Q14: What is the result of typedef int Number;?

Logo

Q15: How to declare an alias for "unsigned long" as "ULong"?

Logo

Q16: What is the effect of typedef on compilation?

Logo

Q17: Can typedef alias a pointer to a function?

Logo

Q18: Which typedef makes "StrPtr" a pointer to char?

Logo

Q19: Why use typedef with pointers?

Logo

Q20: Can typedef be undefined?

Are you ready to start test? Set your time limit