What Would Be The Value Of X After The Following Statements Were Executed?
What Would Be The Value Of X After The Following Statements Were Executed?. Since x=50 and y=50, then the code continues to execute the statement in the block. Switch (x) { case 15:
Since x = 50, substituting for x gives ans =. What will be the value of x after the following statements are executed? (a) the first line is ans = x + 10.