Hello,
can anyone answer these question for me?
Q1: Choose the statement which defines enu type fuzzy consisting of values false, maybe and true. Defined so that maybe is greater than false but less than true.
a. enum fuzzy{false, maybe,true};
b. enum fuzzy{true,false,maybe};
c. enum fuzzy{false, maybe,true}
d. enum fuzzy{true,maybe,false};
I chose b
Next,
which statement allocates space for a variable of the defined enum type?
a. enum color{red,yellow,blue}paint;
b. enum color{red,yellow,blue};
c. enum color{red,yellow,blue}paint;
d. a & c
I chose B
Can anyone tell if I am right and if i am wrong what is the anwers and why?