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?

Community
  • 1
  • 1
guest
  • 437
  • 1
  • 5
  • 12

0 Answers0