What will be the variable z after all the above statements are executed?

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?
A. 10
B. 11
C. 12
D. 13

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.