Which of the following statements assigns the Flavor enumerated type value to The integer variable?
Look at the following code sample:
```
enum Flavor { Vanilla, Strawberry, Chocolate }
```
a. int n = Flavor.Strawberry.ToInteger();
b. int n = Strawberry.IntValue;
c. int n = (Flavor) Strawberry;
d. int n = (int) Flavor.Strawberry;
d. int n = (int) Flavor.Strawberry;
Computer Science & Information Technology
You might also like to view...
A virus appears to be a useful application but it includes a malicious component
Indicate whether the statement is true or false
Computer Science & Information Technology
When configuring a router to use PAP or CHAP as the authentication protocol, what should the username and password be configured as?
What will be an ideal response?
Computer Science & Information Technology