Friday, August 30, 2013

What is the difference between enumeration variables and the preprocessor #defines?


Functionality                                                 Enumerations                       #defines

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

No comments:

Post a Comment