what would the output of this code be?

int startDay = 6;
int day = 22;
switch(startDay)
{
case 5: day += 1;
case 6: day = day + 1;
case 0: ++day;
case 1: day++;
case 2: day += 1;
default: day = day + 1;

}
printf("day: %d\n", day);

the answer is 27, but i thought it would just do case 6, so day +1 so 23

Similar Questions
    1. answers icon 0 answers
  1. What will be the output of below c++ code.//c++ code for auto increment/decrement operators. #include<iostream> using namespace
    1. answers icon 1 answer
  2. Hi I have 3 output problems that I need assistance, thank you!Produce Output For each problem, you are to produce the code, in
    1. answers icon 1 answer
  3. Which sentence best describes how blocked-based code worksLines of code make physical blocks move Each block creates printer
    1. answers icon 1 answer
more similar questions