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

A voltaic cell differs from an electrolytic cell in that in a voltaic cell A. energy is produced when the reaction occurs B. energy is required for the reaction
7m-35=5+2m what is m
Which subatomic particle has a negative charge? (1) proton (3) neutron (2) electron (4) positron
in the Supreme Court case Korematsu v. Untied States, the government said that the 14th amendment A. Did not apply to Korematsu because he was Japanese B. Cou
the wilmot proviso stated slavery would not be allowed in the Mexican cession
simplify Tangent^2(theta)/Sec(theta)+1
Which polyatomic ion contains the greatest number of oxygen atoms? (1) acetate (3) hydroxide (2) carbonate (4) peroxide
decrease 64 by 60% what's the answer
Solve for R. K=ar/p Answer choices: R=ka/p R=kap R=kp/a R=a/kp
Which sequence represents a correct order of historical developments leading to the modern model of the atom? (1) the atom is a hard sphere =>most of the ato