In the name of ALLAH, the most beneficient, the most merciful

Introduction to Programming (CS201)

Question (select most suitable option)

  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