About 97,400 results
Open links in new tab
  1. What Is an Enum in Programming Languages? - ThoughtCo

    May 14, 2025 · An enum is a special type that defines a set of named constants in programming. Enums make code easier to read by using names instead of numbers for values. Enums help reduce bugs …

  2. Enumeration (or enum) in C - GeeksforGeeks

    Jul 29, 2025 · In C, an enumeration (or enum) is a user defined data type that contains a set of named integer constants. It is used to assign meaningful names to integer values, which makes a program …

  3. C Enum (Enumeration) - W3Schools

    An enum is a special type that represents a group of constants (unchangeable values). To create an enum, use the enum keyword, followed by the name of the enum, and separate the enum items with …

  4. Enumeration types - C# reference | Microsoft Learn

    Jan 14, 2026 · To define an enumeration type, use the enum keyword and specify the names of enum members: Spring, Summer, Autumn, Winter. By default, the associated constant values of enum …

  5. enum — Support for enumerations — Python 3.14.3 documentation

    2 days ago · Allows Enum members to have attributes without conflicting with member names. The value and name attributes are implemented this way.

  6. Enumeration declaration - cppreference.com

    Aug 14, 2024 · There are two distinct kinds of enumerations: unscoped enumeration (declared with the enum-keyenum) and scoped enumeration (declared with the enum-keyenum class or enum struct).

  7. Understanding Enums - by George Mulbah

    Sep 9, 2025 · What Exactly is an Enum? An enum is a specialized data type that groups together a predefined list of constant values under a single label. Unlike raw integers or plain strings, enums …

  8. Python Enum — Stop Using Magic Strings and Constants Already

    4 days ago · Learn how to use Python Enum to replace magic strings and constants. Covers auto(), StrEnum, iteration, gotchas, and comparison with JavaScript enums.

  9. What Are Enums (Enumerated Types) in Programming, And Why Are …

    May 18, 2021 · These are a pretty advanced concept, but basically, each enum value represents a single boolean value. Together, the entire enum can be stored in one integer, and used to perform …

  10. Enum Types (The Java™ Tutorials > Learning the Java Language > …

    An enum type is a special data type that enables for a variable to be a set of predefined constants. The variable must be equal to one of the values that have been predefined for it. Common examples …