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

You can walk 1 3/4 miles in a half hour. what is your average speed?(help meee)
Why is a lack of oxygen fatal to cells?
Which of the following would support imperialism Media - capitalists - military personnel - or all above
Quadrilateral ACEG is congruent to quadrilateral MNPR, which statement is true? A) Segment AC is congruent to segment MR. B) Segment AG is congruent to segment
Semantics of “on” versus “in”
which city would most likely be an epicenter of an earthquake San Francisco California was Saint Paul Minnesota explain your answer
When 25 is added to a number the result is 59 less than 4 times the number. What is the number?
Order least to greatest 1/2, 0.55, 5/7
Entering the formula =SUM(C5:C18), in cell C19 will result in which of the following?
Which phrase best defines “summary”?