Solved

What Will Be the Value of X After the Following

Question 55

Multiple Choice

What will be the value of x after the following statements are executed?
int x = 10;
Switch (x)
{
Case 10:
X += 15;
Case 12:
X -= 5;
Break;
Default:
X *= 3;
}


A) 30
B) 20
C) 25
D) 5

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions