value of enum members, when some members have user-defined values.
Posted
by smerlin
on Stack Overflow
See other posts from Stack Overflow
or by smerlin
Published on 2010-05-06T12:27:03Z
Indexed on
2010/05/06
12:38 UTC
Read the original article
Hit count: 147
enum ABC{
A,
B,
C=5,
D,
E
};
Are D and E guaranteed to be greater than 5 ?
Are A and B guaranteed to be smaller than 5 (if possible)?
© Stack Overflow or respective owner