What is enumerated data type

Explain what is enumerated data type?

E

Expert

Verified

Enumerated data type is another user-defined data type that offers way for adding the names to the numbers, hence improving the comprehensibility of code. The syntax of the enum statement is same as that of the ‘struct’ statesmen.

For example:

enum shape{ circle, square, triangle},

enum color{ red, blue, green, yellow}.

   Related Questions in C/C++ Programming

©TutorsGlobe All rights reserved 2022-2023.