Guggy8727 Guggy8727
  • 03-12-2019
  • Computers and Technology
contestada

What is the output of the following C++ code? int x = 55; int y = 5; switch (x % 7) { case 0: case 1: y++; case 2: case 3: y = y + 2; case 4: break; case 5: case 6: y = y – 3; } cout << y << endl;

Respuesta :

thefcuyt
thefcuyt thefcuyt
  • 03-12-2019

Answer:

you get 2

Explanation:

Answer Link

Otras preguntas

How would you write 2501/2 as an improper fraction? PLEASE HELP
what points are the solution???
What is 8.525 rounded to the nearest tenth?
The most effective way to perform data entry is to keep your hands on the keyboard and press to move to the text cell in the row or press to move to the next ce
What did Neville Chamberlain say the Munich Pact had preserved?
what us the length of the longer side?
Question 9(multiple choice worth 3 points) a hurricane destroys most of the fishing boats on the macro islands but leaves the lobster traps untouched. boats are
How many times greater is 70 billion than 700 million
What is the solution to the equation -5(5-(a+1))=9-(5-(2a-3))?
How much would $300 invested at 4 percent interest compounded monthly be worth after 8 years round your answer to the nearest centA. $410.57B. $412.92C. $484.25