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

Select a figure from the options which will continue the same series as established by the problem figures.Please help step by step!
Using the same ratio as before, determine the missing information in the table below.
Case study: Walmart's joint venture in India Walmart is the world's largest retail business. The company wanted to enter the Indian market. Walmart did not set
2. He typed The .............. to finish his report on time.
What is 0.048 written as a fraction?
jihubgyvfctdxszasxdcfvgbhnjmnihubgyvftcdrxsezxdcfvgbhnbgyvftcdrxsdcfv
1.Amina bought 112 toffees each at GH40.45p. She sold each at GH40.53p. Find the total amount she bought the toffees, correct to 2 decimal places received from
8sin2θ+2sinθ−1=0 for all values of θ between 0∘ and 360∘.​
osteoporosis sometimes causes a spinal deformity called __________.
If AC = 32 and BC = 24, find AB.