enum associated values in c

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-03-24T22:18:54Z Indexed on 2010/03/24 22:23 UTC
Read the original article Hit count: 342

Filed under:
|

I have an enum declaration as:

enum qty { cars = 10, bikes = 9, horses = 9 ... } // total 28

How could I add up all the associated values of enumerator-list?

© Stack Overflow or respective owner

Related posts about c

    Related posts about enum