Let I have below program. I would like to assign the value to the enum member at run time. How can i do it?
typedef enum test{
a, b
}test;
typedef struct abc{
test Test;
}abc;
int main(){
abc ab;
ab.Test.a = 5;//Throwing an error as "Expression must have class type"
return 0;
}
Please help me.