File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 7101
7101
An \grammarterm {enumerator-definition} with \tcode {=} gives the associated
7102
7102
\grammarterm {enumerator} the value indicated by the
7103
7103
\grammarterm {constant-expression}.
7104
- If the first \grammarterm {enumerator}
7105
- has no \grammarterm {initializer}, the value of the corresponding constant
7106
- is zero. An \grammarterm {enumerator-definition} without an
7107
- \grammarterm {initializer} gives the \grammarterm {enumerator} the value
7108
- obtained by increasing the value of the previous \grammarterm {enumerator}
7109
- by one.
7104
+ An \grammarterm {enumerator-definition} without \tcode {=} gives the associated
7105
+ \grammarterm {enumerator} the value zero
7106
+ if it is the first \grammarterm {enumerator-definition},
7107
+ and the value of the previous \grammarterm {enumerator}
7108
+ increased by one otherwise.
7110
7109
\begin {example }
7111
7110
\begin {codeblock }
7112
7111
enum { a, b, c=0 };
You can’t perform that action at this time.
0 commit comments