Top

Discussion

Consider this statement: typedef enum good {a, b, c} hello; Which of the following statements is incorrect about hello?

  • A.hello is a typedef of enum good
  • B.hello is a structure
  • C.hello is a variable of type enum good
  • D.the statement shown above is erroneous

Answer: A

The keyword typedef is used to give an alternate name to an existing data type. Hence hello is the new name for enum good.

No comment is present. Be the first to comment.
Loading…

Post your comment