Ask Question
4 January, 05:15

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;

+3
Answers (1)
  1. 4 January, 07:32
    0
    you get 2
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “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 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers