S
Samantha
Hi - I am seeing enum members being used, with just the member's
name, and not the enum name.
for example:
Question 1 - Is Orange's index = 1 ??
Question 2 - what do you think the 0xFF hex is fox??
QUESTION 3 - in the array - why don't I have to put
[FruitIndex.Orange] to access the member??
thanks!
p.s. this is NOT a homework question - i am at work not understanding
how this stuff works.
name, and not the enum name.
for example:
Code:
typedef enum Fruit
{
Apple = 0,
Orange,
Banana = 0xFF
} FruitIndex;
int arrayInt[Orange]
{
more code here.....
}
Question 1 - Is Orange's index = 1 ??
Question 2 - what do you think the 0xFF hex is fox??
QUESTION 3 - in the array - why don't I have to put
[FruitIndex.Orange] to access the member??
thanks!
p.s. this is NOT a homework question - i am at work not understanding
how this stuff works.