State the order of evaluation of the operators in each of the following C# statements and show

Question:

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))));

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Visual C# How to Program

ISBN: 978-0134601540

6th edition

Authors: Paul J. Deitel, Harvey Deitel

Question Posted: