Answer:
4 is the correct answer for the above question.
Explanation:
- If the if-else sequence has 4 blocks then it will be designed like if, else-if, else-if and then else which made 4 blocks which are as follows:-
- The first block is an if block.
- Then the second block is an else-if block.
- The third block is also else-if block and
- The fourth block else blocks.
- So there is a need of 4 value (one value for each case) to test the application which is defined in the above scenario.
- It is because when the first if statement is false then the first else-if statement is executed and when the first else statement is false then the second else-if statement is executed and when it is false then the else statement will executed.
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:
ok
Explanation:
did it. It was a little difficult to keep my pencil straight.