Monday, April 28, 2008

enumeration variables vs. preprocessor #define

Functionality Enum #define
Numeric values assigned automatically? Yes No
Can the debugger display the symbolic values? Yes No
Obey block scope?  Yes No
Control over the size of the variables? No No

 

Also check the former post about enum

No comments:

Post a Comment