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

Why did the Zimmerman Telegram upset the United States?
Can someone please help me with this question?
What is -5/8 / 9/10 ? A. -25/36 B. -9/16 C. -45/80 D. -1/36
What famous government film was aimed at school-age children to teach them what to do in the event of a nuclear attack?
What is the volume of a block of ice measuring 3 meters long, 1.5 meters wide, and 2 meters high? A. 900 cu. m B. 12 cu. m C. 9 cu. m D. 6 cu.
Fusion is a type of
If a tote is 8 inches high , 18 inches wide , and 12 inches deep , how many cubic inches of space is there
Many Americans faced social consequences of the Depression, but one direct economic consequence was
The British ended the opium trade to China in 1836. a. True b. False
Jeb looked through the magazine and found an article called "A Look Back at the Civil War." He wondered if the article had any information on Robert E. Lee. He