views:

153

answers:

0

Possible Duplicate:
Difference between Enum and Define Statements

when should one use

enum {BUFFER = 1234}; 

over

#define BUFFER 1234    

?

what are the advantages enum brings compared to #define? i know, that #define is just simple text substitution and enum names the constant somehow. but why would one need that at all?