Switch case doubt

Sir i did not not understood one thing suppose if we dont write break statement in a particular case then why does all th cases below it becomes true???

example

char ch=‘A’

switch(ch)

{

case ‘A’ : cout<<“A”<<endl;

case ‘B’ : cout<<“B”<endl;

}

here there is no break statement first case is true after that as there is no break statement so it wont come out but instead it should case ‘B’ that means ch==‘B’
as this is not true still case ‘B’ is executed why???

@tejasddongare its how switch case works if break statement is not given after a case is executed all the cases after it till break is not encountered are executed.
hope your doubt is cleared if yes dont forget to hit like and mark resolved :smiley: