阅读背景:

如何将枚举与其第零值进行比较?

来源:互联网 

In c, it is not defined by the standard whether enums are signed or unsigned. However, when I try to compare an enum value to the lowest (ie 0) enumeration constant, I get the warning "pointless comparison of unsigned integer with zero." (Compiler is IAR embedded workbench.)In c, it is not defined by the standard whether




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

分享到: