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

Kai worked a total of 30 hours last week on saturday and sunday he worked five times as many hours than he worked the rest of the week how many hours did he wor
Which of these is a characteristic of plant-like protists? 1.They are called protozoans. 2.They are all unicellular. 3.They are called algae.
A human female inherits how many X chromosomes and how many Y chromosomes
how to do the problem
Opponents of minimum wage say that it causes a job _____, which can increase unemployment.
During a presidential debate, Fran agreed with everything said by her political party's candidate, while she disagreed with each point made by the opposing part
why would Americans trust what Winston Churchill has to say about the Soviet Union?
plz help me with this
Which sequence is geometric and has 14 as its fifth term and 12 as the common ratio?
the definition of term