Asked by Bobby Gallimore on Jun 30, 2024

verifed

Verified

Explicit values can be assigned to each enumerated constant, with unspecified values automatically continuing the integer sequence from the last specified value. For example, ____.

A) enum {Mon: 1, Tue, Wed, Thr, Fri, Sat, Sun};
B) enum {Mon, Tue, Wed, Thr, Fri, Sat, Sun};
Mon = 1;
C) enum {Mon = 1, Tue, Wed, Thr, Fri, Sat, Sun};
D) enum {Mon 1, Tue, Wed, Thr, Fri, Sat, Sun};

Enumerated Constant

A symbolic name for a series of constant values typically defined in an enumeration type.

  • Comprehend the application and distinctions between typedef, enums, and #define within C programming.
verifed

Verified Answer

JW
Jeffrey WirjamihardjaJul 03, 2024
Final Answer :
C
Explanation :
Option C is correct because it demonstrates how to explicitly assign a value to an enumerated constant (Mon = 1) and relies on the automatic continuation of the integer sequence for the subsequent constants (Tue, Wed, etc.).