Declarations and Initializations

Q1:
Which of the following is correct about err used in the declaration given below?
 typedef enum error { warning, test, exception } err;

A
It is a typedef for enum error.

B
It is a variable of type enum error.

C The statement is erroneous.

D It is a structure.

ANS:A -

It is a typedef for enum error.

A typedef gives a new name to an existing data type.
So err is a new name for enum error.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.