Link to home
Start Free TrialLog in
Avatar of praveenuni
praveenuni

asked on

Difference between enumerators and constants

Hello

What is the difference between enumerators and constants ? Constants seems to be more easier to use than enumerators, because in enumerators you have to cast to int to access the value which leads to more confusion.

I have seen many programs which uses enums than constants. Any specific reason why developers are more biased to enumerators ?
ASKER CERTIFIED SOLUTION
Avatar of DarkoLord
DarkoLord
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of praveenuni
praveenuni

ASKER

Thanks DarkoLord.