This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Enum Vs #define

Hi All,
I am being confused with the use of enum vs #define. Sometold me that enum is better and some #define. Well, as per my understanding while defining sequencial data i.e. 1,2,3,4... at that time enum is better as one doesn't has to write the number i.e
enum Month {
Jan,
Feb, ....
Dec };

But in case of random number defination, #define will be good. i.e
#define TEMPERATURE 35
#define USL 45
#define LSL 25

Which one is good with respect to memory ?
What are the advantages/disadvantages of both.