Question: Declare an array of counters that will count how many times a,b, and c is entered in the following switch statment: switch(choice) { case a:
Declare an array of counters that will count how many times a,b, and c is entered in the following switch statment:
switch(choice)
{
case a:
cout<<"a";
break;
case b:
cout<<"b";
break;
case c:
cout<<"c";
break;
default:
cout<<"error";
break;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
