State the order of evaluation of the operators in each of the following C# statements and show the value of x after each statement is performed:
a) x = 7 + 3 * 6 / 2 - 1;
b) x = 2 % 2 + 2 * 2 - 2 / 2;
c) x = (3 * 9 * (3 + (9 * 3 / (3))));
a) *, /, +, -, =; Value of x is 15.
b) %, *, /, +, -, =; Value of x is 3.
c) x = (3 * 9 * (3 + (9 * 3 / (3))));
6 4 5 3 1 2
Value of x is 324.
Computer Science & Information Technology
You might also like to view...
The ________ tab of the Properties dialog box also includes commands to sort the data in the PivotTable
Fill in the blank(s) with correct word
Computer Science & Information Technology
Briefly describe the difference between a document theme and a style
What will be an ideal response?
Computer Science & Information Technology