Hello,
i am having a debate with a fello college about this one. Can someone set the record dtraight once and for all with this easy queastion?
enum color {red, yellow, green, blue}
QUESTION1:
What is the value of the expression(enum color) ((int)red +2)?
a. 0
b. 1
c. 2
d. green
My answer is C
enum cday {sun, mon,tue,wen,thu,fri,sat}
QUESTION2:
What is the value of the expression(enum day) ((int)thu + 5)% 7)?
a. 2
b. sun
c. mon
d. tue
MY answer is mon.
Later Gator 12%43!&
-c-c-out