tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* First enum value defaults to zero?
@ 2010-10-02 10:05 Kristaps Dzonsons
  2010-10-02 15:06 ` Ingo Schwarze
  0 siblings, 1 reply; 2+ messages in thread
From: Kristaps Dzonsons @ 2010-10-02 10:05 UTC (permalink / raw)
  To: tech

Hi,

Question for C-standard experts.  Are initial enum entities guaranteed 
to be zero?  I understand the monotonicity is preserved (if it's 
not...), but can I blast the "= 0" scattered throughout our enums?

enum foo {
I_HATE_DOING_THIS = 0,
BLAH...
};

Kristaps
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-02 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-02 10:05 First enum value defaults to zero? Kristaps Dzonsons
2010-10-02 15:06 ` Ingo Schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).