Computer Science, asked by rzrodrigues29, 3 months ago

this is for computer or other students who know BlueJ as the question is given below

if a=8; find the value of a-=++a 6 a++ +4;
the answer is -14
please can you guys whoever is sending me the answer please send me the pic as the way you guys did in BlueJ .This is a very important question
Can you guys send it quickly as I have a test tomorrow this is there in chapter 4 Operators in Java page 71 sorry for disturbing you guys as I know you guys will be busy as online classes are going on for you guys as well and you people will also have so much homework depending on on grades
I will mark you guys as the brainliest
thank you.

Answers

Answered by satyendrajaiswal78
0

Answer:

myself dharmesh your intro plz can we be friend

Answered by shobhagoswami28
0

Answer:

I can help you understand how to solve the problem.

The expression a-=++a*6+a++ +4 can be simplified by breaking it down into smaller parts and evaluating them in order of precedence.

First, the increment operator ++a will increase the value of a by 1, so a will become 9.

Next, we can substitute 9 for the first occurrence of a in the expression, which gives us:

a -= 9*6 + 9++ + 4

The second occurrence of a (which is now 9) is post-incremented, so it evaluates to 9 before being incremented, and then a becomes 10.

Now, we can simplify the expression further:

a -= 54 + 9 + 4

a -= 67

Since the value of a is currently 10, the expression a -= 67 subtracts 67 from 10 and assigns the result (-57) back to a.

Therefore, the final value of a is -57.

I hope this helps!

mark me as brainlist please

Similar questions