Microsoft
98-361 · Question #324
You are developing a C# program. You write the following code: - int x = 10 - int y = ++x - int x = y++; What will be the variable z after all the above statements are executed?
The correct answer is B. 11. See the full explanation below for the reasoning.
Question
You are developing a C# program. You write the following code:
- int x = 10
- int y = ++x
- int x = y++;
What will be the variable z after all the above statements are executed?
Options
- A10
- B11
- C12
- D13
How the community answered
(31 responses)- A3% (1)
- B81% (25)
- C6% (2)
- D10% (3)
Community Discussion
No community discussion yet for this question.