I have the following struct which represent some binary:
typedef struct Car{
uchar numEngine,
byte numCar,
uchar color
};
and i also have this enum
enum Color{
red =10,
yellow = 254
};
How i can use enum Color inside the struct ?
I tried simply this :
typedef struct Car{
uchar numEngine,
byte numCar,
Color color
};
but then color will be of size int instead of uchar.