LearnFrenzy
Sign in Take a free test

Declarations and Initializations · Declarations MCQ · Question 7

Which of these is not a user-defined data type? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 7 Back to Exercise

Which of the following is not a user-defined data type?

  • A struct book { char title[40]; };
  • B enum day { MON, TUE };
  • C union num { int i; float f; };
  • D long int Correct
Correct Answer: Option D

long int is a built-in type. Structures, unions and enumerations are types the programmer defines.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links