Machine-translated by Google. Questions are authored in English.
Top

Discussion

A user-defined data type can be created with ___________

  • A.struct
  • B.enum
  • C.typedef
  • D.all of the mentioned

Answer: D

Correct answer: all of the mentioned

All three create user-defined types. struct aggregates members of different types; enum names a set of integer constants; and typedef gives a new name to an existing type, which is how struct node * becomes NODEPTR. A union belongs on the same list.

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

Post your comment

Please log in or register to post a comment.