What is the output of the following code, if the first case is true
switch (var) {
case 'a':cout<<"apple"<<endl;
case 'b':cout<<"banana"<<endl;
case 'm':cout<<"mango"<<endl;
default: cout<<"any fruit"<<endl;
}
- apple
- apple
any fruit
- apple
banana
mango
any fruit
- none of above