What can I do with an enum variable?

Posted by drigoSkalWalker on Stack Overflow See other posts from Stack Overflow or by drigoSkalWalker
Published on 2010-03-23T18:39:20Z Indexed on 2010/03/23 19:43 UTC
Read the original article Hit count: 359

Filed under:
|
|
|
|

When I declare a enum variable like this:

enum paint_colors { RED, GREEN, BLUE, ...} colors;

is the colors variable useful? If so, what can I do with it?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about c

    Related posts about enum