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

f a sample of butene (C4H8) that has a mass of 136.6 g is combusted in excess oxygen, what is the mass of CO2 that is produced? C4H8 + 6 O2 --> 4 CO2 +
Which word in the sentence gives the best clues to the meaning of prolific
which type of pronoun is used to point out a specific person, place, or thing?
Does Every positive real number have both a positive and negative cube root?
Both the federal trade commission and the us justice department work to prevent or eliminate __________.
It is hard for identity thieves to steal any identity in today’s society.
Add: (4 − 3n − 5n2) + (−2 + n − 3n2) (Points : 1) −2 − 4n − 8n2 2 − 2n − 8n2 2 − 4n − 8n2 −2 − 2n − 8n2
Change the percent to a decimal. 370%
If water freezes at 32° and boils at 212°, the major temperature scale being used is _________
In this equation, what should be the coefficients of the reactants and products? I2 + O2 → I4O9