-
Which of the following is correct about emp used in the declaration given below ?
typedef enum employ {Engineer, Doctor, Manager} emp;
-
- It is a typedef for enum employ.
- It is a variable of type enum employ.
- The statement is erroneous.
- It is a structure.
- It is one of the elements of enum employ.
Correct Option: A
A typedef gives a new name to an existing data type.
So emp is a new name for enum employ.