阅读背景:

在C中枚举的大小是多少?

来源:互联网 

I'm creating a set of enum values, but I need each enum value to be 64 bits wide. If I recall correctly, an enum is generally the same size as an int; but I thought I read somewhere that (at least in GCC) the compiler can make the enum any width they need to be to hold their values. So, is it possible to have an enum that is 64 bits wide?I'm creating a set of enum values, but I need e




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: