Computer Science, asked by rampuia1295, 1 year ago

How to put enum values to array of enum in c++?

Answers

Answered by SouvikGiri
0
enum declration.
eg:
enum Tempurature
{
Low, Medium, High,
};
sample program
How to get int value from enum

enum Days
{
Sunday = 1,
TuesDay = 2,
wednesday=3
} //get value
int day = (int)Days.TuesDay;

Similar questions