subject

Consider the following declaration: enum fruitType{ORANGE, APPLE, BANANA, GRAPE, STRAWBERRY, MANGO, GUAVA,
PINEAPPLE, KIWI};
fruitType fruit;
Answer the following questions.
a. What is the value of static_cast(STRAWBERRY)?
b. What is the value, if any, of the following expression? static_cast(static_cast(MANGO) - 2)
c. What is the value, if any, of the following expression? static_cast(static_cast(GRAPE) + 2)
d. What is the value, if any, of the expression:
BANANA <= KIWI
e. What is the output, if any, of the following code?
for (fruit = BANANA; fruit < PINEAPPLE; fruit++)
cout << static_cast(fruit) << ", ";
cout << endl;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
1. so if i wanted to build a linux server for web services(apache) with 1cpu and 2 gb of memory.-operating at 75% of memory capacity2. a windows server with 2 cpu/ 4gb memory- operating at 85% of memory capacity3. a storage server with 1 cpu/ 2gb memory- operating at 85% of memory capacityhow much memory do i have to add for each server.so that the utilization rate for both cpu and memory is at a baseline of 60%."the details for the cpu like its processor or the memory's speed isnt to be concerned" yeah i kept asking my teacher if he's even sure about the but the whole class seems to be confused and the project is due in 3 days..this is a virtualization project where i have to virtualize a typical server into an exsi hypervisor.
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
question
Computers and Technology, 25.06.2019 08:00
A( the heart of an information system, is a collection of all relevant facts organized in a series of integrated files.
Answers: 1
question
Computers and Technology, 25.06.2019 08:50
The purpose of this problem is to write some small functions and practice passing things around amoung functions.1) the main function shall ask the user to enter three numbers and read the three numbers.2) write a function named findsum that takes three numbers as arguments and returns their sum. the main function shall call this function.3) write a function named findaverage that takes the sum and the number of numbers and returns the average. the main function shall call this function.4) write a function named findsmallest that takes the three numbers and returns the smallest value. the main function shall call this function.5) the main function shall print the results in the following format, with two decimal positions and the decimal points aligned:
Answers: 3
You know the right answer?
Consider the following declaration: enum fruitType{ORANGE, APPLE, BANANA, GRAPE, STRAWBERRY, MANGO,...
Questions
question
Mathematics, 24.03.2021 03:40
question
Mathematics, 24.03.2021 03:40
question
Mathematics, 24.03.2021 03:40
question
Medicine, 24.03.2021 03:40
question
Spanish, 24.03.2021 03:40
Questions on the website: 13722363