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 tablet weighs 1.23 pounds. What is its weight written as a mixed number?
What is 4r^-3 times 2r^2
Which expression represents "the sum of 3 and n" a. n + 3 b. n3 c. 3n d. n + n + n
Which of the following statements is true? a. Money is a medium of exchange. c. Money serves as a store of value. b. Money is a unit of account. d. all of the a
Describe how the English-speaking population first came to Australia.
why was the battle of Antietam a crucial victory for the union.
Bones contain more ________ than any other organ. A. Iron B. Phosphate C. Calcium D. Vitamin C
what is the least common multiple of 36 and 200
By 1500, what was the dominant religion in West Africa?
Can you explain how to use the combine place values strategy to find 223-119