Solved

What Is the Value of Ans After the Following Code

Question 10

Multiple Choice

What is the value of ans after the following code has been executed?
Int x = 40;
Int y = 40;
Int ans = 0;
If (x = y)
Ans = x + 10;


A) 50
B) 80
C) 30
D) No value, this is a syntax error.

Correct Answer:

verifed

Verified

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

Related Questions