TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - C Coding Standard
Search

Guideline:  8.4#2Checked automatically with code checker

This rule is Obsolete
Synopsis:enum should be used with caution.
Language:C
Severity Level:7
Category:DECLARATIONS


Description:
A significant grey area in the treatment of enums relates to their type. They are defined to be compatible with an integer type but their size is implementation defined. It is recommended that they are not mixed with other integer types in expressions. Note that there are significant differences in the treatment of enum between C and C++.