cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
I dont find any need of enums?
I dont find any need of enums?
Jul 15, 2011 at 2:40pm UTC
SameerThigale
(95)
Coz I think, there are many options(like macro, or simply declaring a variable) to enums
Am I correct?
Jul 15, 2011 at 2:55pm UTC
Athar
(4466)
No. Besides the fact that they're assigned values automatically, they allow for some type safety.
For example, you cannot pass an int to a function that expects an enum type.
Topic archived. No new replies allowed.