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

Explain why policing changed from 1900 - present day (12 marks)
convert 15 into quinary number system​
A section of a deck is shaped like a trapezoid. For this section, the length of one base is 65 feet, and the length of the other base is 44 feet. The height is
Why was the political opponents group targeted by the Nazis?
meteor last for only few minutes give reaso​
How do I say I eat breakfast at 9 am Lunch at 12 pm Dinner at 6 pm In French
which statement is not part of cell theory ?
answer any one: write a computer program:​
Agent Bourne transferred classified files from the CIA mainframe into his flash drive. The drive had 36.536.536, point, 5 megabytes on it before the transfer, a
O oxigênio é importante um gás na quebra de ligações entre os átomos que formam a glicose para a produção de energia. Por que a presença de ferro no nosso organ