Question
typedef enum error { warning, test, exception } err;
Which of the following is correct about err used in the declaration given below?
typedef enum error { warning, test, exception } err;
Answer: Option A
Was this answer helpful ?
A typedef gives a new name to an existing data type.
So err is a new name for enum error.
Was this answer helpful ?
Submit Solution