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

where is brussels located
how do the properties of long-lived stars compare to those of short-lived stars?
During the Federalist era, events in other countries did much to shape political party growth and domestic policy. Look at American relations with England, Spai
how long does it take to become a physical therapist
Tough Math Help ! Use PRT To Solve ( Time in Year) P=300$ R=0.9 T=4 months * 4 months change to a reduced fraction. there are 12 months in one year. Find I
suppose a sorority sells 500 raffle tickets to raise money for a local charity. you purchase 17 of the tickets. if the winning ticket is chosen at random, what
what is the period that followed the end of the western roman empire known as?
At which stage of its life cycle does the glow worm begin to glow?
how much protein do i need
non communicable diseases