1.

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 mentionedThe question was posed to me in semester exam.The above asked question is from Data Types and Sizes in chapter Data Types, Operators and Expressions in C of C

Answer»

The correct OPTION is (d) all of the mentioned

Best EXPLANATION: TYPEDEF and struct are used to define user-defined DATA TYPES.



Discussion

No Comment Found

Related InterviewSolutions