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

All of the ratios equivalent to 4:2
An expression with negative exponent cannot be written as expression with positive exponent
Pada gambar berikut ini, titik M adalah titik singgung ruas garis PS pada lingkaran yang berpusat di O. Jika besar ∠ = 20°, maka ∠ = ⋯ °.
Consider: 222× −322 = 33 6×922 Do you agree or disagree? _____________ Justify your choice:
The perimeter of the triangle below is 41 units. Find the length of side AC. Write your answer without variables.
If you were Jefferson’s editor, how would you rewrite the Declaration of Natural Rights part of the document for modern readers?
HELPPPPPPPPPPPPPPP!!!!!!!!!
60.3 centimeters into milimeters
Where is the list of attribute types? O Diagram O Table O Relationship O Glossary
Expand k(k+m) Answer