Advantages of Enumeration in c++ Programming
a. With this we can assign more than one constant value to a single user defined name.
b. Internally the values of constant are 0, 1, 2, ... n-1.
c. We can explicitly change the value of constants.
d. Arithmetic operations are possible on enumerated type variables.
0 comments:
Post a Comment