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

Respond in a complete sentence in Spanish. ¿Qué haces tú antes de la escuela?
The author uses the phrase "a beautiful child who had not yet […] acquired words to express herself" A. to show that the narrator is recalling the story after b
What do you think is causing the moon to appear to get bigger and smaller?.
Find the length of UV.
PLS help me it math pls
Question 6 (1 point) Which Southeast Asia country is oil-rich Cambodia Brunei Laos Singapore
how was your eye color determined
PLEASE ANYONE I NEED HELP
Compare and Contrast the efforts of Martin Luther King, Jr. , and the Black Panthers to reform economic injustice
Helppp with this pleaseeeeeeeee