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

Is Beryllium a gas, solid, or liquid? *
If ;= -7, what is the value of 13? -1 i 1 -i
The term doctor comes from Latin and means what?
Find the value of x, given that mangle PQS = 110°. Round the answer to one decimal place if necessary. 72+10x (gotta find value for X)
what caused religion to spread in post-classical period
HELP don’t understand
[positive] Edgar saw how plastic trash was increasing in his community and started a company to collect that plastic and turn it into useful things, like materi
According to "Adventure Time and Sacred History: Myth and Reality in Children's Animated Cartoons" what connotation does "myth" have for scholars of religious s
_____dogs you keep are well behaved. ​
Why is sound not a example of matter