Which of following is a user-defined type? | Sololearn: Learn to code for FREE!
+ 3

Which of following is a user-defined type?

Which of following is a user-defined type? And why? A) double B) unsigned long int C) enum D) long int

16th Jan 2019, 6:11 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
2 Answers
+ 3
Cases a,b,d are predefined language types. Enum is a key for user-defined new types. Example: enum Color {Blue, Red, Green}; enum Color myColor = Blue;
16th Jan 2019, 7:05 PM
Javier Felipe Toribio
Javier Felipe Toribio - avatar
+ 1
Enums are user-defined. You can read more about enums here: https://www.geeksforgeeks.org/enumeration-enum-c/. Hope it helps you.
16th Jan 2019, 6:33 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar