Computer Science, asked by ashish7518, 7 months ago

What is ENUM?
ENum क्या है?
Select one:
A. It is used to initialize variables
इसका उपयोग चर शुरू करने के लिए किया
जाता है
B. It is used to define variables
यह चर को परिभाषित करने के लिए प्रयोग
किया जाता है
C. It is used to define constants
इसका उपयोग स्थिरांक को परिभाषित करने के
लिए किया जाता है
D. None
None​

Answers

Answered by adiya15
1

Answer:

It is used to define constants

Answered by Jasleen0599
0

Option C): It is used to define constants

  • Enumeration, or Enum in C, is a unique class of data type that the user defines. Constant integrals or integers with names assigned by the user make up this system. The complete program is simple to learn, comprehend, and maintain by the same or even a different programmer thanks to the usage of enum in C to name the integer values.
  • A unique data type called an enum allows a variable to be a collection of specified constants. The variable must match one of the previously established values. Examples that are frequently used are the days of the week and the values of the compass (NORTH, SOUTH, EAST, and WEST).
  • An enum is a unique "class" that symbolizes a collection of constants (unchangeable variables, like final variables). Use the enum keyword (rather than class or interface) to build an enum, and use commas to separate the constants.

#SPJ2

Similar questions