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:

Verified
Correct Answer:
Verified
Related Questions
Q41: What will be printed when the following
Q42: Which of the following expressions could be
Q43: The if-else statement will execute one group
Q44: Which of the following expressions determines whether
Q45: What will be displayed after the following
Q47: A flag may have the values<br>A) defined
Q48: If the expression on the left side
Q49: Which of the following is the not
Q50: What would be the value of bonus
Q51: When two strings are compared using the