Which of the following is a User-defined data type?
A. typedef int Boolean;
B. typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
C. struct {char name[10], int age};
D. all of the mentioned
Answer:A
Which of the following is a User-defined data type?
A. typedef int Boolean; B. typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays; C. struct {char name[10], int age}; D. all of the mentioned
Explanation:typedef and struct are used to define user-defined data types.