Solved

What Will Be the Value of Ans After the Following

Question 46

Multiple Choice

What will be the value of ans after the following statements are executed?
int x = 40;
Int y = 40;
If (x = y)
Ans = x + 10;


A) 30
B) 80
C) 50
D) The code contains an error and will not compile.

Correct Answer:

verifed

Verified

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

Related Questions