C Programming Data Type Multiple choice question

Exercise :: data type - General Questions

This section contains a lot of Question with answer and explanation.

3) 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 Above


All of the Above


( D )

Explanation :

typedef and struct are used to define user-defined data types.