+ 2

Enumeration and Pointers.

Hello everyone. Is it possible to change an enum value or a variable defined and initialized in a function's value and such kind of things, using a pointer ?? I mean in enumeration we give values but if its necessary to change them we have to write it from the beginning.

5th Mar 2018, 1:09 PM
Aref Rashidifar
Aref Rashidifar - avatar
1 Answer
+ 2
You can use enum overloading. This would be useful link: https://stackoverflow.com/questions/2571456/operators-overloading-for-enums
7th Mar 2018, 8:37 AM
Dmytro Kovryzhenko
Dmytro  Kovryzhenko - avatar