I have a question about enum C.
I defined an enum in the following way:
typedef enum
{
Hello1 = 1,
Hello2 = 2,
Hello3 = 3
}Hello
Hello hello;
int value = 3;
then how to compare the value with the value in Hello?
for example:
if(value == Hello3)
{
}
or should I do it like the following:
if(value == Hello.Hello3)
{
}