Multiple choice technology programming languages

The default type of enum is integer and has default value 1

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In C#, the default underlying type for enum is int, but the default value of the first enum member is 0, not 1. Unless explicitly assigned values, enum constants start at 0 and increment by 1 for subsequent members. This statement incorrectly states the default value is 1.