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 to find all real and imaginary zeros of f(x)=x^4+5x^2-5x^3-6+5x
Estimate the total weight of two boxes that weigh 9.4 and 62.6 pounds using rounding and compatible numbers. which estimate is closer to the actual total weight
19-10x+4=4x-5 i dont understand this equation
A 1/4 turn clockwise
(3x-4)∧2=8 how do i solve this
how did Japan's feudal system impact society?
find the product ad quotient of each pair numbers 24.6 and 1.2
what is 6/7 - 2/5 please help
On a map, 1 inch represents 1,000 miles. If the area of a country is actually 16 million square miles, what is the area of the country’s representation on the
A tourist being chased by an angry bear is running in a straight line toward his car at a speed of 4.00 m/s. The car is a distance d away. The bear is 37.2 m