Consider the following declaration:
enum fruitType{ORANGE,APPLE,BANANA,GRAPE,STRAWBERRY,MANGO,GUAVA,
PINEAPPLE, KIWI};
fruitType fruit;
Answer the following questions.
a. What is the value of static_cast(STRAWBERRY)?
b. What is the value, if any, of the following expression? static_cast(static_cast(MANGO) - 2)
c. What is the value, if any, of the following expression? static_cast(static_cast(GRAPE) + 2)
d. What is the value, if any, of the expression:
BANANA <= KIWI
e. What is the output, if any, of the following code?
for (fruit = BANANA; fruit < PINEAPPLE; fruit++)
cout << static_cast(fruit) << ", ";
cout << endl;

Respuesta :

Answer:

cool

Explanation:

ACCESS MORE
EDU ACCESS