Answers for "enum declaration"

5

enum c++

enum Foo { a, b, c = 10, d, e = 1, f, g = f + c };
//a = 0, b = 1, c = 10, d = 11, e = 1, f = 2, g = 12
Posted by: Guest on March-23-2020
0

enum declaration

enum DAY            /* Defines an enumeration type    */
{
    saturday,       /* Names day and declares a       */
    sunday = 0,     /* variable named workday with    */
    monday,         /* that type                      */
    tuesday,
    wednesday,      /* wednesday is associated with 3 */
    thursday,
    friday
} workday;
Posted by: Guest on July-16-2021
0

enum declaration

enum days{SUN, MON, TUE, WED, THU, FRI, SAT};
Posted by: Guest on June-18-2021

Browse Popular Code Answers by Language