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???
