Question: switch ( phoneDigit ) { case 1 : num = 1 ; break; case 2 : num = 2 ; break; case 3 : num

switch (phoneDigit){ case 1: num =1; break; case 2: num =2; break; case 3: num =3; break; case 4: num =4; break; default: num =0; break; } Looking at the example above, what happens if the break is omitted? a. num is always assigned 0 b. num is never assigned a value c. a syntax error is generated d. num is assigned 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!