Home » C Programming » Data Types » Question
  1. Which of the following is a User-defined data type?
    1. struct {char employeeName[15], int number};
    2. typedef int boolean;
    3. typedef enum {Monday, Tuesday, Wednesday, Thursday, Friday} Workdays;
    4. All of above
    5. None of these
Correct Option: D

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



Your comments will be displayed only after manual approval.