elishane9683 elishane9683
  • 19-07-2019
  • Computers and Technology
contestada

What is the value of this expression?
(int)blue
refer to data type color_t
typedef enum
{
red, orange, yellow,green, blue
}
color_t;
A. 0
B. 1
C. 4
D. 5

Respuesta :

Branta Branta
  • 01-08-2019

Answer:

C. 4

Explanation:

typedef enum{

       red,orange,yellow,green,blue

}

color_t;

defines an enumeration type color_t with the values red,orange,yellow,green,blue.

If we print out the values of these individual elements they will be as follows:

red : 0

orange : 1

yellow: 2

green: 3

blue: 4

Note that the integer values are dependent on the position in the definition.

Answer Link

Otras preguntas

9. According to Confucius, what do good governments depend on? A. educated citizens C. powerful military B. frugal rulers D. wise leaders
Write an equation for the line in slope-intercept form. Need ASAP
The sequences below are either arithmetic sequences or geometric sequences. For each sequence, determine whether it is arithmetic or geometric, and write the fo
CAN ANYONE HELP ME WITH THIS RIDDLE!!!You buy me to eat but you never eat me. What am I?​
Please help I need to pass this lesson
Sonya is baking cookies. The table below shows the relationship between the number of batches of cookies she bakes and the number of cups of sugar she uses 6 Ba
I need help on this ASAP, please! Directions are on the picture. The chart has a total of 42 rows. I really appreciate any help you can provide.
Please help! ABCD is a parallelogram if CDA equals 57 then what does BCD =?
pLEASS HELP!!! I BEG
Select the graph that best represents the solution set. 4x - 2 < 10