FastNetMon

Thursday 14 January 2010

Какой размер enum в C?

An enum is only guaranteed to be large enough to hold int values. The compiler is free to choose the actual type used based on the enumeration constants defined so it can choose a smaller type if it can represent the values you define. If you need enumeration constants that don't fit into an int you will need to use compiler-specific extensions to do so.


(c) http://stackoverflow.com/questions/366017/what-is-the-size-of-an-enum-in-c

Ну int он вопщем.

No comments :

Post a Comment

Note: only a member of this blog may post a comment.